Google Tag module

Open to all! Ask other shopowners for help.
Post Reply
Omar_one
Senior Contributor
Posts: 679
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Google Tag module

Post by Omar_one »

Hello,
what is the best way to create Google Tag module as module or as a hook?
the Google recommends putting GTM code :
one code as high in the <head> and another code right after opening <body> tag

does anyone has create Google Tag module?

Br
Omar


Join The Code Co-op to get access to your library in the Code Co-op Forum
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: Google Tag module

Post by LeeFoster »

Omar_one wrote: Fri Feb 24, 2023 1:57 pm Hello,
what is the best way to create Google Tag module as module or as a hook?
the Google recommends putting GTM code :
one code as high in the <head> and another code right after opening <body> tag

does anyone has create Google Tag module?

Br
Omar
@zipurman created this one.

app.php/addons/paid_addon/google_analytics_4/
Omar_one
Senior Contributor
Posts: 679
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: Google Tag module

Post by Omar_one »

LeeFoster wrote: Fri Feb 24, 2023 3:17 pm @zipurman created this one.

app.php/addons/paid_addon/google_analytics_4/
Thank you @LeeFoster
I have that module .. now I am confuse.. as always :D :D ...
I was think its need different module?!!

thank you
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: Google Tag module

Post by LeeFoster »

Omar_one wrote: Fri Feb 24, 2023 3:33 pm
LeeFoster wrote: Fri Feb 24, 2023 3:17 pm @zipurman created this one.

app.php/addons/paid_addon/google_analytics_4/
Thank you @LeeFoster
I have that module .. now I am confuse.. as always :D :D ...
I was think its need different module?!!

thank you
I don't have that module so can't confirm, I am assuming you are using it for Google analytics tracking though
Yahalimu
Member
Posts: 29
Joined: Mon Oct 26, 2020 1:27 pm
Phoenix Version: v1.0.5.0
Has thanked: 4 times
Been thanked: 1 time

Re: Google Tag module

Post by Yahalimu »

Hello,
I think I hard coded the GTM and put in in the <body> area.
EU GDPR rules specify if the user does not specifically allow 'un-necessary' cookies via a cookie warning, the google analytics code should not be active. (Very few sites seem to implement this).
If set correctly the GTM is one way to switch off all tracking cookies if not allowed by the site visitor.
Its a real pain to set up to be honest.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply