Support » Plugin: DuracellTomi's Google Tag Manager for WordPress » Insert Adwords Conversion Tracking Value

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author duracelltomi

    (@duracelltomi)

    Hi,

    What shopping cart plugin are you using?

    Cheers,
    Thomas

    Hi Thomas and thanks for the quick reply.
    I use Woocommerce.

    Guy

    Plugin Author duracelltomi

    (@duracelltomi)

    Hi Guy,

    In this case enable WooCommerce integration in my plugin. Using this, you will have a GTM event called ‘gtm4wp.orderCompleted’ when someone completes an order.

    The plugin includes many dataLayer variables so that you can include the order in Google Analytics as a transacion. This includes a dataLayer variable named transactionTotal.

    Use this with a dataLayer macro to include a dynamic value in your AdWords Conversion tag.

    All-in-all:

    #1 Create a rule:
    {{event}} equals ‘gtm4wp.orderCompleted’

    #2 Create a macro:
    Macro type: dataLayer variable
    Variable name: transactionTotal

    #3 Create the AW tag:
    Tag type: AdWords conversion tracking
    Conversion ID & label as shown in your AW account
    Conversion value: {{the name of the macro created in #2}}

    I hope this helps.

    Cheers,
    Thomas

    Thanks Thomas – really helpful.

    Two last quick questions:

    • In the rule creation – do I need to have the event equals ‘gtm4wp.orderCompleted’ or gtm4wp.orderCompleted?
    • When I create the AW tag -should the firing rule be my thank you page (e.g.: {{url}} starts with http://cityflipflops.com/checkout/order-received) or should it be the event we created in the rule (e.g. {{event}} equals ‘gtm4wp.orderCompleted’)?

    Thanks again.

    Guy

    Plugin Author duracelltomi

    (@duracelltomi)

    #1 don’t include the ‘ marks, just simply gtm4wp.orderCompleted
    #2 i would suggest to use the event since if the url of your thank you pages changes sometime the event won’t.

    Hey Thomas.

    I enabled the Woocommerce integration on the plugin, and followed your instructions. It still doesn’t work.

    Looking at the page source of my thank you page I can’t find the transactionTotal variable or the gtm4wp.orderCompleted event.

    The GTM is working. If I am just using a constant value on the Adwords Conversion Tag and fire it on the url it works (but it’s not dynamic value).

    You can view the source code of my thank you page here:
    view-source:http://cityflipflops.com/checkout/order-received/2887/?key=wc_order_530cab621d01d&utm_nooverride=1?key=wc_order_530cab621d01d&utm_nooverride=1

    Is there anything I am missing?

    Plugin Author duracelltomi

    (@duracelltomi)

    Hi,

    Transaction data is only included once, just after closing your order. If you reload the page it won’t show up.

    I was trying to test this on your site but since the only payment option is PayPal I was not able to close an order.

    Is it possible to enable wire transfer just for some minutes so that I can test this now without paying?

    Thomas

    I enabled check payment.
    Thanks.

    Plugin Author duracelltomi

    (@duracelltomi)

    Thanks,

    I checked it and it might be a bug.
    I am going to investiage this issue as soon as possible.

    Thanks so much Thomas. It’s been driving me crazy.

    Looking forward to hearing from you.

    Guy

    Plugin Author duracelltomi

    (@duracelltomi)

    Hi Guy,

    I just relased the fix, could you please update and check it?

    Thanks,
    Thomas

    karmakiss

    (@karmakiss)

    Works like a charm!

    Thanks so much Thomas.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Insert Adwords Conversion Tracking Value’ is closed to new replies.