Giter VIP home page Giter VIP logo

Comments (9)

loevgaard avatar loevgaard commented on June 1, 2024

Hi @Jurgen8en

I am glad it works and you like it. Did you figure out your question since you closed the issue? :)

from syliusanalyticsplugin.

Jurgen8en avatar Jurgen8en commented on June 1, 2024

Not the best solution, but I just added this on the required pages

<script>gtag('event', 'begin_checkout');</script>
<script>gtag('event', 'checkout_progress', {"checkout_step": 1});</script>
<script>gtag('event', 'checkout_progress', {"checkout_step": 2});</script>
...

from syliusanalyticsplugin.

gabiudrescu avatar gabiudrescu commented on June 1, 2024

I would reopen this issue to be addressed in a proper way. I think I will be able to provide an implementation

from syliusanalyticsplugin.

loevgaard avatar loevgaard commented on June 1, 2024

Yes, I agree. It should be provided in the plugin

from syliusanalyticsplugin.

Jurgen8en avatar Jurgen8en commented on June 1, 2024

Another thing.
The purchase call should not be added to the thank-you page. It generated duplicates, and some custumers don´t wait this page to be loaded.
gtag('event', 'purchase', {"transaction_id":"...

The purchase should be called by the backoffice:
https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide

from syliusanalyticsplugin.

gabiudrescu avatar gabiudrescu commented on June 1, 2024

if you do the purchase request on server side, you loose all the referral and UTM campaign data. and then all orders will be associated with the direct channel. you don't want that.

from syliusanalyticsplugin.

Jurgen8en avatar Jurgen8en commented on June 1, 2024

ok, I found another solution https://www.thyngster.com/the-definitive-approach-for-preventing-duplicate-transactions-on-google-analytics-universal-customtask (posted NOVEMBER 21, 2019)

from syliusanalyticsplugin.

Jurgen8en avatar Jurgen8en commented on June 1, 2024

Server side:

from syliusanalyticsplugin.

loevgaard avatar loevgaard commented on June 1, 2024

Closing this issue since we are past this. The new branch (and soon new version) will support GA4 with the relevant events

from syliusanalyticsplugin.

Related Issues (15)

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.