0

I work at an agency with a client trying to put a conversion code with dynamic parameters into the purchase success page. The code requires Magento 2's unique identifiers to create the hit that relays the info to my ad platform.

I need the parameters for: cart subtotal and for product name. As an example, Shopify uses {{checkout.subtotal_price}} for subtotal values.

Can anyone reply with these values?

1 Answer 1

0

You can maybe use extension like this

https://github.com/magepal/magento2-checkout-success-misc-script

But depending on how bespoke you might have to write something custom

https://github.com/DominicWatts/GoogleEcommerceTracking

5
  • so there is no standard taxonomy we can use without a plugin or extension? I believe the coders tried a custom solution, but my ad platform has not been able to read that format and register the values in reporting.
    – Haley Z.
    Commented Mar 26, 2021 at 18:48
  • No there isn’t without extension Commented Mar 26, 2021 at 19:54
  • I work for an agency and we frequently have to code such functionality. It's not too difficult. Commented Mar 26, 2021 at 19:59
  • In your agency, what ad platform did/do you work with? Google, Trade Desk, Centro, etc?
    – Haley Z.
    Commented Mar 26, 2021 at 20:10
  • Generally google, Facebook and bing. Google extension is built in. Facebook has a extensive officialish extension. Google ships with M2. Very early versions of M2 it was was basic. I don't think you got commerce tracking option. So far only stuff had to create is random remarketing snippets. Nothing well known and most have disappeared as quickly as they appeared. Commented Mar 26, 2021 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.