Google Analytics: Avoid Pageview Hit on event

Bronze Contributor
Bronze Contributor

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

3 REPLIES 3

Google Analytics: Avoid Pageview Hit on event

Gold Contributor
Gold Contributor

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

Google Analytics: Avoid Pageview Hit on event

Bronze Contributor
Bronze Contributor

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

Google Analytics: Avoid Pageview Hit on event

Gold Contributor
Gold Contributor

Thanks @Mediascale, this solves the fundamental issue with the GA template. 

Public