universal-analytics

GTM data layer eventCallback function

雨燕双飞 提交于 2019-12-06 08:23:36
So i have Ecommerce code setup in GTM data layer, but after that is sent to Analytics i want the page to be redirected so i know i should be using eventCallback but it is not working for some reason. <body> <script> dataLayer = [{ 'transactionId': '56833', 'transactionAffiliation': 'TestName', 'transactionTotal': 1540.00, 'transactionTax': 385, 'transactionShipping': 0, 'transactionProducts': [{ 'sku': 'FFSS44HH', 'name': 'test', 'category': 'TestCategory', 'price': 1540.00, 'quantity': 2 }], 'eventCallback': function() { document.location.href='https://www.paypal.com/something'; } }]; <

Universal Analytics - 3rd Party Payment Gateway

强颜欢笑 提交于 2019-12-05 20:35:19
Our website is currently tracking with Universal Analytics via Tag Manager. Our check-out process includes getting redirected to a 3rd party payment gateway before going to the Thank You Page. So, it would look like this: site.com/checkout --> site.com/payment --> security.com --> site.com/thankyou Security.com is a 3rd party site and I am unable to add the tracking code there. I'd like to be able to see who are able to get past the security.com stage and make it to the site.com/thankyou page. But with this setup, my reports show that after site.com/payment, the visitors exit. Then they return

UserId, CID in measurement protocol

心不动则不痛 提交于 2019-12-04 13:06:41
问题 Measurement protocol To Identify a new user vs. returning user , can we use the user id field . ( i.e we can hash username or other identifier unique to the user and associate it with a particular user . This way we can identify new users vs. returning users effectively. Question on CID -- CID is used to indentify a user's session uniquely till the session expires. Do we have to track the session expiration manually to generate cid per user session ? Pls clarify 回答1: A long time after but

Google Analytics demographics For Android App

独自空忆成欢 提交于 2019-12-04 09:44:35
问题 I used Google Analytics Demographics on android app using Google play service library. i have updated my android code using enableAdvertisingIdCollection(). its working fine with screens and data. But its demographics info isn't working? Please suggest how do i handle demographics. thanking you. Code : Application code : ... synchronized Tracker getTracker( TrackerName trackerId, String appKey) { Log.d("Application", "In Application class getTracker PID" + appKey); if (!mTrackers.containsKey

Getting user info using Client ID

依然范特西╮ 提交于 2019-12-04 05:17:14
问题 I have inserted the analytics.js tracking script into my code, and now I am trying to get user data such as medium, source, etc. using javascript and putting them into variables. Is there a way I can do this using Client Id? 回答1: I assume you mean getting the data in realtime for use in your website. That is not possible. Client ID is not exposed in the interface by default, you'd need to use a custom dimension. There is a processing delay, report data may only be reliable the next day. While

Analytics.js: What does 'auto' argument do on tracking object creation?

与世无争的帅哥 提交于 2019-12-03 15:11:27
问题 I've just switched to the new Google Analytics Universal Analytics platform, using the new javascript API - Analytics.js In the first example code snippet from the docs a tracking object is created, then a pageview of the current page is logged using that tracking object. ga('create', 'UA-XXXX-Y', 'auto'); ga('send', 'pageview'); Notice the 'auto' argument - I can't work out what that's there for . I had a look at the method reference and it seems that the relevant parameter is optional and

Analytics.js: What does 'auto' argument do on tracking object creation?

坚强是说给别人听的谎言 提交于 2019-12-03 05:49:25
I've just switched to the new Google Analytics Universal Analytics platform, using the new javascript API - Analytics.js In the first example code snippet from the docs a tracking object is created, then a pageview of the current page is logged using that tracking object. ga('create', 'UA-XXXX-Y', 'auto'); ga('send', 'pageview'); Notice the 'auto' argument - I can't work out what that's there for . I had a look at the method reference and it seems that the relevant parameter is optional and should contain configuration key/value pairs. Examples can be found in the field reference . If the

Enable Demographics and Interests reports in Universal Analytics

旧城冷巷雨未停 提交于 2019-12-03 01:26:26
I want to enable demographics and interests reports with the Universal Analytics tracking code. The generated tracking code for my site looks like this: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-999999999-9', 'whatever.com'); ga('send', 'pageview'); </script> Under Display Advertiser Features there is

Analytics+Statistics for offline Apps?

自闭症网瘾萝莉.ら 提交于 2019-12-01 10:58:33
As the title suggests, what I need to do is track various user events - such as clicks, swipes, time spent on a page, etc. - in an various iOs/Android/Windows App. These Apps are based on responsive HTML/CSS/JS and have a simple OS specific container. All data such as images, videos, etc. are self-contained in the Apps. Characteristic for these Apps is, that sales staff will use iPads/Surface/Android Tablets to demonstrate features of products, spreadsheets, infomercials, etc. to possible clients. One key requirement of the client is that as soon as the tablet connects to the Internet, these

Existing Google Analytics events and Google Tag Manager

女生的网名这么多〃 提交于 2019-11-29 22:19:09
I have implemented Google Analytics (GA) on my site and I send several custom events through ga("send", "event", ...); function and it works well. I am experimenting with Google Tag Manager (GTM). I have removed original GA snippet, and now I use GTM to inject GA tag on my site and pageviews are tracked correctly. What does not work well are my custom events sent by ga() function. I have noticed that GA create has tracker name variable like ga("create", "UA-12345678-1", {name: "gtm0123456789", allowLinker: false}); and Google Analytics Debugger extension for Google Chrome reports Command