Enabling date range choices for implementing api in Google Analytics

I am trying to implement a date range selector following the demo version https://ga-dev-tools.appspot.com/embed-api/custom-components/ But when I try to check my script, I get errors.

For these scenarios

/public/javascript/embed-api/date-range-selector.js "

/public/javascript/embed-api/components/date-range-selector.js "

I get 404 error saying no scripts were found. Whenever I check my sources in a browser, the generated .js files are empty.

Also, I tried this:

https://ga-dev-tools.appspot.com/public/javascript/embed-api/components/date-range-selector.js

And I got an error saying that gapi was undefined.

How should I include this js in my project so that I can implement it? I also disabled AdBlock if that means anything.

+5
source share

All Articles