Giter Site home page Giter Site logo

Comments (4)

jehna avatar jehna commented on September 25, 2024

Hey @Dezzign

I know that you change 'gtag' to 'galite'

I think you're trying to use this project to replace gtag (Google Tag Manager) instead of ga (Google Analytics). This project can be used as a drop-in replacement for Google Analytics, but not for Google Tag Manager.

from ga-lite.

Dezzign avatar Dezzign commented on September 25, 2024

Hi Jehna,

Thanks for the response. not quite trying to use it like a tag manager. The issue is that:

  1. as AdWords states - If the global site tag is already installed on all pages, but comes from another Google product (such as Google Analytics) then I can just add the following snippet to count conversions as well:
    gtag('config', 'AW-930415418');

  2. And then add the phone number conversions script separately:

<script> gtag('config', 'AW-930415418/n5jDCMeornAQuobUuwM', { 'phone_conversion_number': '02 9939 xxxx' }); </script>

Perhaps my mistake was thinking that the Galite analytics also has the 'global site tag' contained within it like the normal analytics code does? Does that make sense?

Thanks,
Richard

from ga-lite.

jehna avatar jehna commented on September 25, 2024

Perhaps my mistake was thinking that the Galite analytics also has the 'global site tag' contained within it like the normal analytics code does? Does that make sense?

That's correct: Unfortunately ga-lite can not be used as anything else than sending analytics events from your website to Google Analytics.

Nowadays Google Analytics recommends to install itself through Google Tag Manager. The "global site tag" that's referred to is actually Google Tag Manager, which is a Google product that you can use to load arbitrary code (like Google Analytics) on your website.

You can tell that by looking at documentation: The script url starts with https://www.googletagmanager.com/ and the code includes gtag function calls. That means Google Tag Mananger.

Google Tag Manager uses a similar interface as Google Analytics (something('config', value, ...)), but those two are different products doing a bit different things.

from ga-lite.

jehna avatar jehna commented on September 25, 2024

Closing due inactivity, please open a new issue if I can help you with anything else :)

from ga-lite.

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.