Reply
Highlighted
Visitor
Posts: 2
Registered: ‎12-03-2018
Accepted Solution

Google Analytics: Avoid Pageview Hit on event

Hello Community

We are implementing Google Analytics for audience reporting. We'd like to send specific event and custom dimensions when conditions are true. But the website has 2 tag manager (GTM & Tealium) along each other.

While the 1st one sends standard data to GA (pageview), I'd like to send Event data without making any pageview hit. 

I've browse through the forum and did not find a clear answer.

Thank you very much for your help. 

J

Reply
0 Kudos
Frequent Visitor
Posts: 20
Registered: ‎10-16-2017

Re: Google Analytics: Avoid Pageview Hit on event

Hi @Mediascale

If you are using Google Analytics, you have to specify Event Category and Event Action to fire an event call. As soon as these two variables are set and mapped in the tag, an event call should be sent (without a pageview).

Hope that helps

Patrick

Reply
0 Kudos
Visitor
Posts: 2
Registered: ‎12-03-2018

Re: Google Analytics: Avoid Pageview Hit on event

Hey Patrick

How are you doing ? 

thank you for your answer. 

Indeed, It make sense to only fire the events using the Google Analytics Tags. However, by default the tag is firing by default. Looking at the Developper pages, I saw that if you use GTAG, you are able to deactivate the pageview once the gtag.js library is called. (resources)

You need to make a custom destination with config to reproduce this call

gtag('config', 'GA_TRACKING_ID', { 'send_page_view': false });

Which results in doing this: 

Screenshot at Jan 09 17-54-12.png

It solved my problem :)

Thank you very much for your input. 

Have a nice day

J

Reply
0 Kudos