GithubHelp home page GithubHelp logo

Comments (11)

rbn30117 avatar rbn30117 commented on July 27, 2024 1

Alright! Now you have answered my question. Do outbound clicks need a custom event setup with the code?

from minimal-analytics.

rbn30117 avatar rbn30117 commented on July 27, 2024 1

Thank you. I will keep that in mind.

from minimal-analytics.

jahilldev avatar jahilldev commented on July 27, 2024

Hi @stullesha,

By default, the official GA4 script tracks page_view, user_engagement, scroll and click events "out of the box". No additional config is required in the UI, or elsewhere.

This minimal version is exactly the same, e.g it "Just Works".

I've actually just added click event tracking in v1.6.0, so you'll now get those events too, bringing it to default feature parity with the official script.

If I've missed something, or I haven't answered your question, please let me know.

Thanks

from minimal-analytics.

rbn30117 avatar rbn30117 commented on July 27, 2024

I am actually referring to the ''Enhanced measurement" section of GA4.

from minimal-analytics.

jahilldev avatar jahilldev commented on July 27, 2024

@stullesha Unfortunately I don't think this is in scope for the @minimal-analytics/ga4 package.

Things like how to use various features of GA4 can be found elsewhere, including the official GA4 docs.

from minimal-analytics.

rbn30117 avatar rbn30117 commented on July 27, 2024

I think you are misunderstanding my question. If a user doesn't toggle search and scroll in the ga4 property, will your code still track those features? This is what I am referring to!

from minimal-analytics.

jahilldev avatar jahilldev commented on July 27, 2024

If a user doesn't toggle search and scroll in the ga4 property, will your code still track those features?

@stullesha Oh right, I see, yeh your question wasn't super clear, you probably should have lead with this in the first place!

So, of the default events that GA4 can track, this package only supports the first four:

Screenshot 2022-06-10 at 20 11 34

  • Page View
  • Scrolls
  • Outbound Links
  • Site Search

This is kind of briefly mentioned in the opening paragraph, but I see your point, it could be clearer 👍

But to answer your actual question:

If a user turns off, or does not turn on, one of the supported tracking event types, does it still track those events?
Yes, if it's a supported event type, these will still be tracked. The reason being, we are not requesting or receiving any GA4 UI defined config here, we're merely sending data to an endpoint. The flow of data is one way.

If you want to have more fine grained control over the GA4 tracking events, it's advised you use the official library. Implementing the complete suite of features of GA4 is, as I say, out of scope unfortunately for this particular package.

I hope that better answers your question!

from minimal-analytics.

jahilldev avatar jahilldev commented on July 27, 2024

Great! 👍

Yes, outbound clicks are now being tracked, from v1.6.0 onwards, as mentioned above. You don't need to setup anything in the GA4 UI, it'll just work.

from minimal-analytics.

rbn30117 avatar rbn30117 commented on July 27, 2024

Okay. Which event name is for outbound links? I am using the CDN version. (So far I have these https://prnt.sc/VImkFmyjUF2U)

from minimal-analytics.

jahilldev avatar jahilldev commented on July 27, 2024

@stullesha It will show up in your GA4 reports as click:

Screenshot 2022-06-10 at 21 38 35

You can see relevant event params tracked as part of that event by clicking on it. I'd suggest looking up the official docs on how to generate reports on these. Some of the params tracked as part of this event are:

ep.outbound = whether the link was outbound (mostly true)
ep.link_id = element ID of the link clicked
ep.link_url = href of the link clicked
etc, etc

Also remember there's some lag between events being tracked, and showing up in your reports.

from minimal-analytics.

rbn30117 avatar rbn30117 commented on July 27, 2024

I can confirm the click event is now live.

from minimal-analytics.

Related Issues (17)

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.