Analytics
2.2K members online now
2.2K 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

How to create events for clicking a banner?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I'm new here as you can probably see Smiley Happy

 

I hope someone could please help me with a simple question regarding creating an event. 

How can I create an event for tracking clicks on the banner in my clients homepage (see link).

 

A few more questions:

1. How do I create that event (clicking on the upper banner of the site - the one with all the cars)?

2. Where do I implement the tracking code? 

3. How do I see that event in GA ?

 

Many thanks,

Ofer.

1 Expert replyverified_user

Re: How to create events for clicking a banner?

Rising Star
# 2
Rising Star
I took a quick look at your site and you have google tag manager implemented.

This means you can use GTM to implement your events. You can either send an event to the data layer or use a trigger based on a page element to fire an event to GA.

You can find an overview of how to do the second suggestion here: https://support.google.com/tagmanager/answer/6106716?hl=en

A click on the banner results in a element class being sent which equals item 'slidesjs-slide' for example. You could use this to trigger an event in GA. However, this is a bit fragile as if this element class occurs elsewhere then it could also accidently send events. You could filter it by only sending it from the start page.

Alternatively, you could ask a developer to set an event on clicks on that - which sends a GTM event which you can then create a GA event. Instructions here: https://developers.google.com/tag-manager/devguide?hl=en (the part which describes onclick).

As always test first - GTM allows you test new events before you publish them.



John Wedderburn, Advertiser Community, Rising Star
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.