Optimize
5.4K members online now
5.4K members online now
Understand the information in your Optimize reports and in your Google Analytics reports.
Guide Me
star_border
Reply

50 new visitors, but Google Optimize reports 0 session?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Site target: https://www.plrebookclub.com/amember/signup

Google Tag Manager is there. 

 

Why is reporting showing no session visiting this page, where google analytics proves otherwise?

 

 - Best

1 Expert replyverified_user

50 new visitors, but Google Optimize reports 0 session?

Top Contributor
# 2
Top Contributor

Hi :-)
1) Google tag manager does not seem to be installed correctly.
The GTM container code is currently in a div
There are two parts to the container code, you should recheck that within GTM from where you get the container code, get the current version of the container code and reinstall it according to the instructions included with it.

GTM includes Google Analytics for UA-10055650-1.
I dont know if its a Universal Analytics tag or a Google Analytics tag

There is also tracking code for ga.js installed on the website for UA-10055650-1.
If tracking is installed via GTM then the tracking code should not also be installed into the site code.

Maybe once all the tracking is sorted out.. then can work on getting google optimize up running properly.
There are instructions here for using it with GTM
https://support.google.com/360suite/optimize/answer/6314801?hl=en&ref_topic=6197443

 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

50 new visitors, but Google Optimize reports 0 session?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

because of this, the code will stop working?

What about this page? https://www.plrebookclub.com

Code seems to be properly placed there but still doesn't report session even for a clean home page. Unless, I'm wrong here?

50 new visitors, but Google Optimize reports 0 session?

[ Edited ]
Top Contributor
# 4
Top Contributor

What is your GTM container code id?

 

eta.. also one of the pre-reqs of using Google Optimize too is

using universal analytics tracking code ..atm your site is using the older

traditional ga.js tracking code snippet

https://support.google.com/360suite/optimize/answer/6211921?hl=en&ref_topic=6197443#prerequisites

 

this is also re-iterated with the code changes that need to be made in the instructions on the page i linked to

earlier

https://support.google.com/360suite/optimize/answer/6314801?hl=en&ref_topic=6197443

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

50 new visitors, but Google Optimize reports 0 session?

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

My google tag manager:

 
My google analytics Tracking Id
UA-10055650-1
 
Google optimize:
Account ID1093174054
Container IDGTM-NQ3GN2L

Re: 50 new visitors, but Google Optimize reports 0 session?

Top Contributor
# 6
Top Contributor

Hi :-)

As per my earlier reply and the pages I linked to in the help documentation, you are not using the current version of analytics tracking (needed for use with Google Optimize)

 

The linked page also gives the instructions on how to get it all setup to work together when Google Tag Manager is being used

https://support.google.com/360suite/optimize/answer/6314801?hl=en&ref_topic=6197443

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

50 new visitors, but Google Optimize reports 0 session?

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

What is the current version of analytics? With Google Tag Assistant, I see two two codes.

 

I think the extra tracking code you are seeing comes from CloudFlare's installation of Google Analytics. The other Google Optimize container code including googled analytics code. Check the screenshot of how Cloudflare Google Analytics is implemented for sites using CloudFlare: https://nimbus.everhelper.me/client/notes/share/830295/0zdaxefw88h1w8ca8gn4

I'm unaware there's a version of the current analytics code.  I'm sure I'm entering the right tracking id. Are you referring to tracking id or version as in universal or classical analytics?  Or something else? Also, google doc help since to be broken, and can you directly link to the section you are referring to? 

 

Lastly, thanks for all the help. 

 

- best

 

 

Re: 50 new visitors, but Google Optimize reports 0 session?

[ Edited ]
Top Contributor
# 8
Top Contributor

What is the current version of analytics?
Current version of GA tracking code snippet is Universal analytics.js also sometimes referred to Asynchronous, which you can obtain from logging into Google Analytics and accessing the Tracking Info > Tracking Code section for the applicable property.

<!-- Google Analytics -->
<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','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->

 

The site is currently using the previous version of GA tracking code snippet  - Classic ga.js (has also been referred to in the past as Async)

It's not mandatory to upgrade to Universal analytics.js, the code has not yet been deprecated,

however, it doesnt get updated to work with new Analytics features and functionality etc.

https://developers.google.com/analytics/devguides/collection/gajs/

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-X']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src=('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

 

With Google Tag Assistant, I see two two codes.
You can obtain the most recent version of the GTM container code from logging into GTM and going to the Admin section for the applicable GTM account and Container and clicking the option to Install GTM. it will open up a box with the two pieces of GTM container code. As per the instructions, one piece gets installed in the <head></head> section, the other gets installed just after the opening <body> tag

Seems they have updated the docs in relation to using Google Optimize when GA is deployed via GTM.. 

https://support.google.com/360suite/optimize/answer/7359264?hl=en&ref_topic=7310368

 

 eta. also the following bit of code at the bottom of the signup page should possibly be removed.. it's not on the homepage of the site, and it's showing up in Google Tag Assistant as an additional GA tracker on the signup page

 

<script type="text/javascript">/* CloudFlare analytics upgrade */
window._gat=window._gat||{_getTracker:function(){return {_trackPageview:function(){}}}};
</script>
<script type="text/javascript">
if (typeof(_gaq)=='object') { // sometimes google-analytics can be blocked and we will avoid error
    _gaq.push(['_setAccount', 'UA-10055650-1']);
    _gaq.push(['_trackPageview']);
}
</script>

 

 

 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

50 new visitors, but Google Optimize reports 0 session?

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭

Cloudflare refuses to use the new tracking code. Therefore, all CloudFlare customers wanting to use Google optimize, would either have to remove the google analytics app from CloudFlare or use CloudFlare version along with the version of Google Analytics. This would present a problematic installation because two of the same tracking code would be skewing your data.

Either Google makes Google optimize compatible with old tracking, or Cloudflare updates their analytics code. However, after speaking with the engineering department, they said they won't be making changes anytime soon. How unfortunate, I guess this is what happens when your organization is too big. The wrong department could care less. This company definitely needs a product manager.