AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
3.3K members online now
3.3K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Two pages, same HTML code, one GA doesn't track events

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi all,

 

I am a digital manager for a company that has two brands: one for Spain and one for France. We have exactly the same html and css code (I've compared with Mergely and only change the folders). Both have implemented Universal Analytics. My problem is that the events of the homepage appear in France GA but not in Spain.

 

ie


Tracking France:

//Main Banner tracking event
$(".bigpromo .append").on('click','a',function() {
var mainPromoHref = $(this).attr("href");
setTimeout(function(){
trackEvent('HP Promo Action', mainPromoHref);
},1000);
});

 

Traking SpainSmiley Sad 

//Main Banner tracking event
$(".bigpromo .append").on('click','a',function() {
var mainPromoHref = $(this).attr("href");
setTimeout(function(){
trackEvent('HP Promo Action', mainPromoHref);
},1000);
});

 

 

What could happen? Do you imagine?

1 Expert replyverified_user

Re: Two pages, same HTML code, one GA doesn't track events

Top Contributor
# 2
Top Contributor
Hi Nacho G,

I would first check your tracking code for both sites just to make sure there is nothing wrong with their implementation. Use tools like GA Debugger, or the dev console, to help check if hits are being sent. Use Real-Time reports as well (although not as reliable sometimes). If you are not even getting basic hits, then there may be something more wrong that just your event tracking. Also check your JS, that you have included jQuery libraries and other libraries.

It's a bit difficult to help debug without access to your site, but if you volunteer that info, then that may help.

Hope this helps get your started.
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

Re: Two pages, same HTML code, one GA doesn't track events

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi Nicky,

Thanks for you answer.

The implementation is correct; both pages are running since years with the same code and other events appear. We did the setup for ecommerce and more. So I think is not these kind of problems.

ON the other hand, which info do you need? maybe I can share this information without problem Smiley Happy

Thanks a lot

Re: Two pages, same HTML code, one GA doesn't track events

Top Contributor
# 4
Top Contributor
You can point us to where this event on your page can be triggered (so also include your site information).
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

Re: Two pages, same HTML code, one GA doesn't track events

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hi Nicky,

 

The page where works the code is this one www.amen.fr and the events are triggered when a user click on boxes.

The page where does not work the code is www.nominalia.com.

 

With this, can you help me?


Thanks a lot Nicky