ggendre / GALocalStorage

A google analytics version that works with localstorage instead of cookies for webviews usage (deprecated)
114 stars 46 forks source link

Realtime events are tracked but nothing is stored in other GA reporting views #31

Open arevue opened 8 years ago

arevue commented 8 years ago

Hi,

Thank you for this work, it is so helpful since GAPlugin is still with an old version of ga.

However, I face a weird issue : I use GALocalStorage with an hybrid app, I can see events and pageviews on ga realtime view; but the events are only visible there. I mean, there's no trace of them in the common event report. Is it a known issue?

What should I do to get more insights about this bug ?

Best regards,

Alexis

LOL2011 commented 8 years ago

Hey, I have a similar issue in that Page Views are tracked but not the trackevent. I can see page views real time but not events. Would you mind helping me at least get to your stage where you can see the events real time as its a step further than I have got.

I have the below code in my app.

<script type = "text/javascript" language = "javascript">
ga_storage._setAccount('UA-2341664-25'); //enable google analytics to work on App 
ga_storage._trackPageview('/index.html');
ga_storage._trackEvent('PDF', 'download');  //ga_storage._trackEvent('category', 'action', 'label', 'value');
</script>

Many thanks