Developer forum

Forum » Swift » Google Tag Manager in Swift

Google Tag Manager in Swift

Martin Ottesen
Martin Ottesen
Reply

Hi DW,

I was looking for a way to set up Google tag manager in Swift, and couldn't find it anywhere. 

It's a feature in Rapido, is it true that this hasn't been transferred into swift? and do you have plans to do so?

Kind Regards

Martin


Replies

 
Steffen Jørgensen
Steffen Jørgensen
Reply
This post has been marked as an answer

Hi Martin

It's coming to Swift soon.
We are currently working on implementing Tag Manager with GA4.

Votes for this answer: 1
 
Cristina Santos
Reply

Hi!

We are very interested in being able to use Google tag manager in Swift.

Our client used it in his previous ecommerce and wants to continue using it...

Is there a date for this implementation?

In the meantime, any suggestions how we can add it to the Swift code?

Thanks a lot!

 
Nicolai Pedersen
Reply

Next official release is August 30th. It is currently in testing and should be approved any second now. You can see it when approved on Github: https://github.com/dynamicweb/Swift

Also later this week you will see a new Swift version tag - 1.13 that will contain this feature.

BR Nicolai

 
Tomas Gomez
Reply

Hi Nicolai,

Thanks for the update.

Could you please point which template(s) has been modified to include this new feature? (to avoid updating all Swift templates)

Regards,
Tomas

 
Johan Lang
Johan Lang
Reply

Hi DW,

We also need to implement Google tag manager and Facebook pixel as well for one of our customer which use Swift.

This is implemented in Rapido, see picture.

In which release of Swift are or will these be implemented?

Where to find Google tag manager in Swift, It's not in Website settings in Swift 1.14.

Website settings Rapido:

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Johan

We currently only support GA4. (https://doc.dynamicweb.com/swift/setup-project/guides/google-analytics-4)
See below thread related to tagmanager - you can change the gtag script to gtm for now - all the events Swift has for GA4 are there and are the same to use with GTM: https://doc.dynamicweb.com/forum/swift?ThreadID=84762

We do not plan on implementing FB pixel - but you can easily add it to the header of the website using "Header includes", https://doc.dynamicweb.com/swift/customization#14341 using a file like this one: https://github.com/dynamicweb/Swift/blob/main/Swift/Files/Templates/Designs/Swift/Components/Custom/CustomHeaderIncludeExample.cshtml - it has ti be chosen on the website settings.

See the FB pixel installation guide: https://www.facebook.com/business/help/952192354843755
The problem with the FB pixel is that it requires a GDPR consent - a cookie consent is NOT enough. And we have no current way of obtaining a valid GDPR consent of a user.
See this section in relation to consent: https://developers.facebook.com/docs/meta-pixel/implementation/gdpr

I know most companies do not give a fuck about GDPR and tracking, but trials around Europe have begun and companies are loosing, and we will not implement stuff that we do not think follow rules and regulations - you have to do that your self :-).

BR Nicolai

 

You must be logged in to post in the forum