We have set the google analytics event tracking code on above suggested places and uploaded on both dev.islg and www.islg.
Notified 2 people
Ryan Knuth,Customer Support Manager
Hi
Harsh
I've tested on www.islg but I can't see any events appearing in Google Analytics. It looks like the code is correct, but for some reason it's not making it to GA. Could you please take a look from your end to see if there are any JS errors, mismatched quotes or anything?
We did some R&D and fond the following solution. Please perform following step and check once again. GA -> Admin -> Tracking info -> Data Collection -> disable both toggles and click on save. It can take up to 24 hours for the changes to take effect.
I've disabled the toggles and I'll check in later.
Ryan
Notified 2 people
Ryan Knuth,Customer Support Manager
Hi
Harsh
It looks like the events still aren't getting recorded in GA. Are there any other errors you see when clicking on those links?
Ryan
Notified 3 people
Harsh Parikh,Tech Lead
Hi
Ryan
,
There is no other error generating when we clicking on links.
I did some further R&D and fond following link. It suggest that we need to change GA event tracking code. Please review link and let us know your feedback.
We're still using analytics.js so the format should be OK. I'll run it by one of our devs who usually does our GA implementations to see if I've structured the code incorrectly or something.
Thanks!
Ryan
Notified 3 people
Harsh Parikh,Tech Lead
OK Thanks
Ryan
.
Notified 3 people
Ryan Knuth,Customer Support Manager
Hi
Harsh
I've had a developer do some troubleshooting with the code locally and he's recommended a few updates:
GO button onclick="ga('send', 'event', 'Global Search', 'click', 'GO');">
GA script <!-- Google Analytics --> <script> (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]= function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date; e=o.createElement(i);r=o.getElementsByTagName(i)[0]; e.src='//www.google-analytics.com/analytics.js'; r.parentNode.insertBefore(e,r)}(window,document,'script','ga')); ga('create','UA-97262363-2');ga('send','pageview'); </script>
Could you please try this updated code on dev.islg and I'll re-test?
Thanks!
Ryan
Notified 3 people
Harsh Parikh,Tech Lead
Hi
Ryan
,
We have updated the above code and uploaded on dev.islg. Please check and let us know the feedback.
Notified 3 people
Ryan Knuth,Customer Support Manager
Hi
Harsh
The "GO" button is working now, however, the View Results links still are not. I noticed some slight differences between the onclicks on the Go and View Results. Please adjust the View Results ones to the following:
onClick -> onclick quotes -> Update onclick opening and closing quotes to ""
We have updated View Result links on dev.islg. Please check and confirm.
Notified 3 people
Ryan Knuth,Customer Support Manager
Looking good on dev.islg
Harsh
.
There's just one edit to make for the Article Citator View results link - currently the onclick label says "Global Search - Subject Navigator." Please update to "Global Search - Article Citator."
Once you've made that edit you can push the changes to www.islg.
hey all, Looking at the analytics, this looks good to me now other than the added apostrophe? Just wondering which day we started tracking the events on?
Notified 4 people
Ryan Knuth,Customer Support Manager
Would've been tracking reliably since early yesterday morning.
👌
Notified 4 people
Morgan Maguire,CEO
Great. Thanks
Ryan
and
Harsh
. For getting this setup. Shall I mark this to compete?
Also,
Ryan
, perhaps we can discuss an issue I'm having with setting up a goal on GA that tracks how often trial account requests are submitted. I used to have this setup properly, but it appears I'm having difficulty doing this with the new site.
Morgan
Notified 4 people
Stefanie Gibson,UX Researcher
I just took a quick look and it should be fixed now. Ryan - let me know.
Notified 4 people
Ryan Knuth,Customer Support Manager
Looks like the goal is working for me now. Thanks
Stefanie
!
Notified 4 people
Ryan Knuth,Customer Support Manager
Morgan
After you've confirmed the GA fixes you can mark this complete.
Notified 4 people
Morgan Maguire,CEO
Hi
Ryan
,
Let's plan to go through this on Tuesday, because I uncertain how I test whether the fixes are complete. Note I'm not seeing the URL change when performing a Global Search on dev.islg. Isn't that a basic requirement in how this whole thing will work?
Morgan
Notified 4 people
Ryan Knuth,Customer Support Manager
Sounds good
Morgan
. We've been able to track Global Search usage without the URL change via GA Event tracking. I'll show you how to test in Real Time, and the Events area of GA.
Ryan
Notified 4 people
Morgan Maguire,CEO
I see. Sounds good. Look forward to learning more on Tuesday.
Morgan
Notified 4 people
Harsh Parikh,Tech Lead
Hi
Ryan
,
We have removed an extra ' from the Jurisprudence link on both dev.islg and www.islg. Please check and confirm.
Notified 4 people
Ryan Knuth,Customer Support Manager
Looks good, thanks
Harsh
.
Ryan
Notified 4 people
Ryan Knuth,Customer Support Manager
Hi
Harsh
When looking at the data yesterday I noticed that the label for the "View results" link is "GO" rather than "View results." Could you please update that in the onclicks for the View results links? The GO button can remain the same.
We have replaced label name "Go" to "View results" on both dev.islg and www.islg. Please check and confirm.
Notified 4 people
Ryan Knuth,Customer Support Manager
Thanks
Harsh
. I've confirmed the updated labels. I haven't seen one of these updated events come through to Google Analytics yet, so I'll keep an eye on it.
Ryan
Notified 4 people
Morgan Maguire,CEO
Hi
Ryan
,
What's the latest on this to-do? Is everything resolved yet? Note it looks like the goals in GA are setup properly now. All the conversions are flowing through the signup page.
Thanks,
Morgan
Notified 4 people
Ryan Knuth,Customer Support Manager
Hi
Morgan
,
My apologies, I thought I had closed the loop on this. The event tracking for Global Search looks good in prod, and the goal adjustment looks good to me as well. I'll go ahead and mark this complete.
We require the following google analytics event tracking code added to the Global Search "GO" and "View results" links. See below for each:
onClick=”ga('send', 'event', 'Global Search', 'click', 'GO');”
onClick=”ga('send', 'event', 'Global Search - Subject Navigator', 'click', 'View results');”
onClick=”ga('send', 'event', 'Global Search - Article Citator', 'click', 'View results');”
onClick=”ga('send', 'event', 'Global Search - Jurisprudence Citator', 'click', 'View results');”
onClick=”ga('send', 'event', 'Global Search - Terms & Phrases', 'click', 'View results');”
onClick=”ga('send', 'event', 'Global Search - Full Text Search', 'click', 'View results');”
onClick=”ga('send', 'event', 'Global Search - Treaties & Rules', 'click', 'View results');”
onClick=”ga('send', 'event', 'Global Search - Dispute Documents', 'click', 'View results');”
I am looking into this and will update you soon.
We have set the google analytics event tracking code on above suggested places and uploaded on both dev.islg and www.islg.
I've tested on www.islg but I can't see any events appearing in Google Analytics. It looks like the code is correct, but for some reason it's not making it to GA. Could you please take a look from your end to see if there are any JS errors, mismatched quotes or anything?
Thanks!
Ryan
Due to event tracking code, when we clicks on GO button then we produce the following error in console.
stats.g.doubleclick.net/r/collect?v=1&aip=1&t=dc&_r=3&tid=UA-97262363-2&cid=248706199.1531146385&jid=754914348&_gid=702119705.1534746893&gjid=1794933035&_v=j68&z=1366221475:1 GET https://stats.g.doubleclick.net/r/collect?v=1&aip=1&t=dc&_r=3&tid=UA-97262363-2&cid=248706199.1531146385&jid=754914348&_gid=702119705.1534746893&gjid=1794933035&_v=j68&z=1366221475 0 ()
We did some R&D and fond the following solution. Please perform following step and check once again.
GA -> Admin -> Tracking info -> Data Collection -> disable both toggles and click on save. It can take up to 24 hours for the changes to take effect.
Please refer following URL to perform above steps .
https://tonnygaric.com/blog/prevent-google-analytics-from-making-requests-to-stats-g-doubleclick-net
I've disabled the toggles and I'll check in later.
Ryan
It looks like the events still aren't getting recorded in GA. Are there any other errors you see when clicking on those links?
Ryan
There is no other error generating when we clicking on links.
I did some further R&D and fond following link. It suggest that we need to change GA event tracking code. Please review link and let us know your feedback.
https://www.en.advertisercommunity.com/t5/Google-Analytics-Tracking-Goals/Google-Analytics-Custom-Event-Not-Working/td-p/1250680#
We're still using analytics.js so the format should be OK. I'll run it by one of our devs who usually does our GA implementations to see if I've structured the code incorrectly or something.
Thanks!
Ryan
I've had a developer do some troubleshooting with the code locally and he's recommended a few updates:
GO button
onclick="ga('send', 'event', 'Global Search', 'click', 'GO');">
View results links
onclick="ga('send', 'event', 'Global Search - <ADD TOOL NAME HERE>', 'click', 'View results');">
GA script
<!-- Google Analytics -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-97262363-2');ga('send','pageview');
</script>
Could you please try this updated code on dev.islg and I'll re-test?
Thanks!
Ryan
We have updated the above code and uploaded on dev.islg.
Please check and let us know the feedback.
The "GO" button is working now, however, the View Results links still are not. I noticed some slight differences between the onclicks on the Go and View Results. Please adjust the View Results ones to the following:
onClick -> onclick
quotes -> Update onclick opening and closing quotes to ""
onclick="ga('send', 'event', 'Global Search - Subject Navigator', 'click', 'View results');"> View results </a>
We have updated View Result links on dev.islg. Please check and confirm.
There's just one edit to make for the Article Citator View results link - currently the onclick label says "Global Search - Subject Navigator." Please update to "Global Search - Article Citator."
Once you've made that edit you can push the changes to www.islg.
Thanks!
Ryan
We have changed Article Citator View result link label and uploaded on dev.islg.
We have also migrated all changes on www.islg. Please check and confirm.
There's one very minor adjustment to make for the Jurisprudence Citator. An extra ' is appearing in the Category for this link. See screenshot.
Looking at the analytics, this looks good to me now other than the added apostrophe? Just wondering which day we started tracking the events on?
Also,
Morgan
Let's plan to go through this on Tuesday, because I uncertain how I test whether the fixes are complete. Note I'm not seeing the URL change when performing a Global Search on dev.islg. Isn't that a basic requirement in how this whole thing will work?
Morgan
Ryan
Morgan
We have removed an extra ' from the Jurisprudence link on both dev.islg and www.islg. Please check and confirm.
Ryan
When looking at the data yesterday I noticed that the label for the "View results" link is "GO" rather than "View results." Could you please update that in the onclicks for the View results links? The GO button can remain the same.
Thanks!
Ryan
We have replaced label name "Go" to "View results" on both dev.islg and www.islg. Please check and confirm.
Ryan
What's the latest on this to-do? Is everything resolved yet? Note it looks like the goals in GA are setup properly now. All the conversions are flowing through the signup page.
Thanks,
Morgan
My apologies, I thought I had closed the loop on this. The event tracking for Global Search looks good in prod, and the goal adjustment looks good to me as well. I'll go ahead and mark this complete.
Thanks!
Ryan
Morgan