• Resolved myatix

    (@myatix)


    Great work…
    I think this plugin has to be one of the most interesting WP plugins being developed at the moment. Well done!

    I seem to have hit a bug in the remarketing section of GTM4WP. I use variations a lot on our site ecommerce site but for some reason the totalvalue is not being returned when a user selects a specific variation?

    Any ideas on how to solve this?

    Thanks! ??

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi @myatix,

    Thanks for the kind words!

    This is actually not a bug but something that was always a big question in me: in my talks to Google I usually got the feedback that totalvalue on product detail pages are not that important, more important is to use this on the checkout page and on the “order received” page.

    I guess it is quite easy to add the total value while somebody selects a variation but based on what I know it is not that relevant for your dynamic targeting.

    Let me know your thoughts!

    Thomas Geiger

    Thread Starter myatix

    (@myatix)

    Hi Thomas,

    Thanks for getting back to me so quickly!

    It is interesting that Google says it isn’t important on product pages as they actually carryout checks on prodid, pagetype and totalvalue in ADWords to validate the Remarketing Tag?
    You can see this setup validation under “Shared Library > Audiences” in Adwords. According to my account manager at ADwords it is important that there are no errors here as this impacts your AD quality score.

    Best regards

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi @myatix,

    Well if this is the case, I am open to add the totalvalue on product pages.
    But this involves currently patching into the php files.

    If you can open integration\woocommerce.php, you should see around the line 126 this code:

    		". $gtm4wp_datalayer_name .".push({
    			'event': 'gtm4wp.changeDetailViewEEC',
    			'ecommerce': {
    				'currencyCode': '".get_woocommerce_currency()."',
    				'detail': {
    					'products': [current_product_detail_data]
    				},
    			},
    			'ecomm_prodid': '".gtm4wp_prefix_productid("")."' + current_product_detail_data.id,
    			'ecomm_pagetype': 'product',
    			'ecomm_totalvalue': 0
    		});

    What you need to do is to change the line where ecomm_totalvalue shows up:

    'ecomm_totalvalue': current_product_detail_data.price

    Let me know if this satisfies your needs.

    Thomas

    Thread Starter myatix

    (@myatix)

    Hi Thomas,

    I have added the code as you suggested above but this doesn’t resolve the issue?

    presumably the trigger needs to be changed in Google Tag Manager so that the DataLayer gets updated when selecting an option from the dropdown (Variable).

    I have cleared my cache and tested it doesn’t return the product ecomm_totalvalue?

    I hope this makes sense?

    best regards

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Have you changed anything else on the site?
    For some reason the jQuery library is not loading while some codes of my plugin starts to execute. This prevents product variation selection to work properly as well.

    Thomas

    Thread Starter myatix

    (@myatix)

    No I have not changed anything at all!

    My best guess is this is related to WP-Rockets cache plugin functionality
    for Render-blocking CSS/JS.

    https://docs.wp-rocket.me/article/108-render-blocking-javascript-and-css-pagespeed

    Best regards

    Thread Starter myatix

    (@myatix)

    Hi Thomas,

    Any ideas or thoughts with regards to the above?

    Best regards

    Plugin Author Thomas Geiger

    (@duracelltomi)

    I checked your site again and it seems to be working for me:

    https://www.awesomescreenshot.com/image/2763441/34c0642159c5d77380fd5a90fe12c1c3

    Have you added the gtm4wp.changeDetailViewEEC event trigger to your AW remarketing tag?

    Thread Starter myatix

    (@myatix)

    Hi Again,

    OK… I can see that there have been a few changes since I implemented the plugin the first time. Thanks for the info.

    • This reply was modified 7 years, 3 months ago by myatix.
    Thread Starter myatix

    (@myatix)

    All working now! Thanks!

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Great news! Thanks for letting me know!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Woocommerce Variations – No TotalValue returned?’ is closed to new replies.