I’m having trouble with implementing Google Analytics in my Spotify application. I’ve set up the tracking code but I can’t see any data appearing in my Google Analytics dashboard. I’m wondering if I missed a configuration step or if there’s something wrong with my implementation.
Here’s the code I’m using:
var analytics = sp.require("sp://import/scripts/googletracker");
var gaTracker = new analytics.GoogleTracker('UA-xxxxxxx-1');
gaTracker.track('MYAPP/pageview');
I’ve double-checked my tracking ID and it seems correct. The code runs without errors but no data shows up in Analytics. Has anyone encountered this before? Any suggestions on what might be causing this problem would be really helpful.