Code Monkey home page Code Monkey logo

Comments (39)

juliosampaio avatar juliosampaio commented on August 29, 2024 1

Hey @chemerisuk by simple downloading this branch the integration should work? Or Is there any other configuration that should be done?

from cordova-plugin-firebase-analytics.

chemerisuk avatar chemerisuk commented on August 29, 2024

I'm planning to investigate this, but no timestamps for now.

from cordova-plugin-firebase-analytics.

chemerisuk avatar chemerisuk commented on August 29, 2024

Check gtm branch

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@analytics-jiten @chemerisuk @juliosampaio @jonas-m- @FdezRomero

Hi Guys how to link GTM and App. can you please advice????

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat I ended up forking the main branch and implementing the same changes that were made in the GTM branch

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 what are the things need to set up in GTM console and can i use same function for screen view and events logging

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat GTM will automatically feed your Firebase events into the GTM console assuming you have your GTM console settings setup correctly. Look at the Google documentation for what is needed. View the GTM branch I linked to to see how to setup the GTM library dependencies on each platform. Then use this link to see how to add the resource files to each project and how to see GTM debug messages in Android's logcat.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 i m using gtm branch and same js
Function without setup the GTM but i can see event logging in firebase then what the use of GTM console

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat Yea I wonder that myself... One thing that I know it can do is to forward your Firebase events to a Google Analytics account. It can also modify the events and trigger new events based on what is sees from firebase.

I have yet to see an example of being able to dynamically create new events through Firebase Analytics, which I thought was the main point of GTM.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 By default all the data collected in Firebase. we can transfer the data from Firebase to GA using GTM if you need. is right?

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat It is not by default, within the GTM console you have to choose the Firebase events and setup a trigger to send them to GA.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 thanks. GTM branch is working in android but not in ios can you please advice??

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat I assume you included separate GTM-XXXX.json files for iOS and Android as <resources>? Are there any messages in the log?

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

Yes @hvaughan3 i have used like below

<platform name="android">
	<resource-file src="google-services.json" target="app/google-services.json" />
	<resource-file src="GTM-TGT4ZB4.json" target="app/src/main/assets/containers/GTM-TGT4ZB4.json" />
</platform>
<platform name="ios">
	<resource-file src="GoogleService-Info.plist" />
	<resource-file src="GTM-TGT4ZB4.json" /> 
</platform>

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat Any Google Tag Manager related log messages when you run the app?

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 No i couldn't see. i am using phonegap build site to generate apk and ipa files. any other idea.

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat You should still be able to look in the console window when you run the app right?

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 console window mean GTM or GA ?

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 Also checked in your GTM branch. i am using same code.
https://github.com/hvaughan3/cordova-plugin-firebase-analytics/tree/gtm

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat No the simulator or iOS device console window.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 i am testing in device. can you share your skype id if you have.

you have any sample setup

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat Hook up your device to your computer and view the console output when you run the app.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 installed the app using phonegap build site i dont know how to debug can you explain please

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 i didn't see any error in console

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 where we need to move the file "GTM-XXXXX.json" project_root or project_root/container

https://developers.google.com/tag-manager/ios/v5/

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat I put mine in the root of my Cordova project. Then the <resource> tag moves it into the correct place.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 can you share the resource tag in document need to move the GTM-xxx.json file to container folder. Please refer

https://developers.google.com/tag-manager/ios/v5/

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat Using the <resource-file> tag as you had them was correct:

<platform name="ios">
    <resource-file src="GoogleService-Info.plist" />
    <resource-file src="GTM-TGT4ZB4.json" /> 
</platform>

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 but this resource tag move file to project root not container folder... In above link, please see the point 4 - download json and move to container folder.is it working from root or inside container folder

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat It is better to put it in resources folder but it can still be found in the root. It is working in the root for me.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 can you please share your code

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat You have the forked plugin code from my repo and your <resource-file> tags are identical to mine. Thats really all the code there is for it. I am using straight Cordova though, not PhoneGap.

I assume Firebase is working in your app? If so that should be all you need to do other than setting things up in the GTM website.

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 i will try with your repo. For android every thing working fine but ios events are logging in firebase but not in GTM

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat Make sure to allow the Google URLs in config.xml but I would imagine that if Firebase is not being blocked, then GTM wouldn't be blocked either.

<access origin="https://www.google-analytics.com" />
<access origin="https://www.google.com" />

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 thanks will check and update you 😁

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 i have added th access origin but still it is not working. but i am using below version for both firebase core and gtm. is this fine??

<framework src="Firebase/Core" type="podspec" spec="~> 4.1"/>
 <framework src="GoogleTagManager" type="podspec" spec="~> 6.0"/>

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on August 29, 2024

@edvenkat Actually I am using:

<framework src="Firebase/Core" type="podspec" spec="~> 5.6"/>
<framework src="GoogleTagManager" type="podspec" spec="~> 7.0"/>

Link

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@hvaughan3 i saw. Any problem with different version

Getting below error while using your version

Failed to install 'cordova-plugin-firebase-analytics': Error: pod: Command failed with exit code 1 at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Socket.stream.socket.on (internal/child_process.js:381:11) at Socket.emit (events.js:182:13) at Pipe._handle.close (net.js:611:12) pod: Command failed with exit code 1

from cordova-plugin-firebase-analytics.

edvenkat avatar edvenkat commented on August 29, 2024

@edvenkat Actually I am using:

<framework src="Firebase/Core" type="podspec" spec="~> 5.6"/>
<framework src="GoogleTagManager" type="podspec" spec="~> 7.0"/>

Link

I have tried this. Now i am getting in console

GoogleTagManager warning: No default container found. Container needs to be added to a container folder and added to the target.

After create and move the GTM-XXXX.json file to container folder. I am getting below error

GoogleTagManager info: Attempting to load saved version of container GTM-XXXXXX

Please advice

from cordova-plugin-firebase-analytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.