sitefinitysteve / nativescript-google-analytics

Apache License 2.0
23 stars 14 forks source link

Feature: GTM support #19

Open DroneKid opened 7 years ago

DroneKid commented 7 years ago

Hi! How hard would it be to provide GTM support also? Thanks a lot!

sitefinitysteve commented 7 years ago

I am unsure sir :) Never used tag manager, can you point me to the relevant docs to see what it would take? This is what I've been going off of

https://developers.google.com/analytics/devguides/collection/ios/v3/

On Wed, Nov 23, 2016 at 11:32 AM, Alex Sapronov notifications@github.com wrote:

Hi! How hard would it be to provide GTM support also? Thanks a lot!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sitefinitysteve/nativescript-google-analytics/issues/19, or mute the thread https://github.com/notifications/unsubscribe-auth/ABeI6KN44haW2YBP0KGscSqsMdp0rtNkks5rBGqPgaJpZM4K6y3R .

DroneKid commented 7 years ago

This: https://developers.google.com/tag-manager/

But I guess the fastest way woul be to rip it from React Native lib :) He does everything in native Java/Obj-C code though. https://github.com/idehub/react-native-google-analytics-bridge

Thank for looking at it.

The flow is very similar. Open container and push events. Here is Java implementation: https://github.com/idehub/react-native-google-analytics-bridge/blob/master/android/src/main/java/com/idehub/GoogleAnalyticsBridge/GoogleTagManagerBridge.java

cenkingunlugu commented 7 years ago

You can use this:

https://github.com/cenkingunlugu/nativescript-google-tagmanager