Google Analytics API data retrieval issue with Spotify app

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.

hey dan, you know, spotify really phased out the old app platform, so that sp://import thing isn’t gonna help you. for tracking now, you should use GA4 or Universal Analytics on your web app. that old API is long gone since 2017. hope that helps!