Start a new topic

Google Analytics set up

Should my GA property be defined as a website or mobile app? I've tried it both ways but I'm not seeing my Cordova based app reporting into GA. 

we added the line
as documented in the official GA docs for that reason.

Please also check tracking during the preview of your experience via the Wikitude application.

Best regards,

Hi Andreas,

But I can assume that it should work just fine as an offline package when connected to the Internet? 



Note that the tracking happens inside the JS context of the experience and will only work with active Internet (permission).

You may open tools.js, search for `Logger` and set `enabled` attribute to 'true' so that you can remote debug the webView. Additionally add some lines to the `createGoogleAnalyticsSignalListener` function.

Hope that helps,

1 person likes this

Are you using it as an offline package? That is how my project is structured and I'm not seeing it either. 

We followed these directions, and consulted WT documentation as well. However, our GA site isn't getting  event data despite having put in the GA Key as required. Did we miss a step?

Hi again,

Just create a default website GA account and enter the GA-key. You should see events arriving in real time. I just tested using a temporary test account.

Note that the tracked events should give you basic information about popular targets and augmentations. You will e.g. see which augmentations are loaded. Values of event/action/label may be hard to read, but I attached the convention.

Hope this helps

(23.6 KB)
I'm referring to the GA setup for the tracking code inside of my AR content. There is the option to add it from insid my AR project in the studio but it doesn't appear to populate GA.

GA tracking isn't part of our SDK and therefore questions around it are not covered by our forum.

Please have a look at other forums, e.g. stackoverflow instead.

Best regards,


Login or Signup to post a comment