Closed

VP Conversion Tracking

Fri Nov 11, 2022 5:17 am
I am thinking of buying "VP Conversion Tracking" - I have read the documentation, but nowhere have I found information on how to add javascript to a website of my choice other than the payment confirmation page. How do I add a conversion only to the category page or only to the product page?

Does your plugin support enhanced google conversions?
support.google.com/google-ads/answer/10172785
The topic has been closed.
Fri Nov 11, 2022 11:49 am
VP Conversion Tracking is a sales conversion tracking plugin. It is designed mainly to track the order conversion, i.e. the purchase event. Yes, it supports Enhanced Ecommerce Tracking, but only for the Purchase event. You will need to customise your Joomla template if you want to track, add-to-cart, and other events.

The plugin automatically adds the sales conversion tracking codes to the order confirmation page and allows you to set up a standard thank you page for all payment methods. It also tracks product page views for Facebook pixels.

You can add custom tracking codes to the order confirmation page and globally to all the pages using the plugin. However, if you want to add custom tracking codes only to the product details page or category pages, you will have to add those tracking codes to the respective layout files in your template overrides.
Post your reviews about us on our Facebook Page.
Post your testimonials and suggestions Here.
Don't forget to Close your topic when resolved.
The topic has been closed.
Fri Nov 11, 2022 5:38 pm
$document = JFactory::getDocument();
$app = JFactory::getApplication(); 
$options = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$lay = $app->input->getCmd('layout', '');
$Itemids = $app->input->getCmd('Itemid', '');
$layer = " dataLayer.push ({'event':'remarketingTriggered','google_tag_params': window.google_tag_params});";
if ($options == 'com_virtuemart') {
if ($view == 'category') { 
					$js = "var google_tag_params = {'ecomm_pagetype': 'category'};". $layer;
 } elseif ($widok == 'productdetails') { 
					$js .= "var google_tag_params = {'ecomm_pagetype': 'product'};". $layer;
 } elseif (($lay == 'orderdone') or ($widok == 'pluginresponse') or ($widok == 'thankyou')) { 
					$js .= "var google_tag_params = {'ecomm_pagetype': 'purchase'};". $layer;
} elseif ($widok == 'cart') { 
					$js .= "var google_tag_params = {'ecomm_pagetype': 'cart'};". $layer;
} else {
					$js .= "var google_tag_params = {'ecomm_pagetype': 'other'};". $layer;
}} elseif ($Itemids == '101') { 
					$js .= "var google_tag_params = {'ecomm_pagetype': 'home'};". $layer;
 } else { 
					$js .= "var google_tag_params = {'ecomm_pagetype': 'other'};". $layer;
 }

In general, the sales conversion itself can be easily added to the Virtuemart template in the "thank you" page. I did something like this on my tracking template page, but I'd rather have it all in one plug. It would be perfect if your plugin could split conversions based on the type of page. I want to opt out of GTM and I want to send everything to GA4 - events tracking such as "add to cart", product list, etc
The topic has been closed.
Fri Nov 11, 2022 8:46 pm
For Ecommerce Tracking of the category pages, product details pages etc., you will also need to get hold of the category data, product list data, product data etc. Therefore, you need to add the tracking codes in the respective layout files but not globally in the template's index file or any plugin.

To track the add-to-cart event, you will need to customise the components/com_virtuemart/assets/js/vmprices.js script. It is impossible to track such an event using an external plugin properly. You may use the GTM datalayer or standard GA4 tracking codes accordingly to your choice, but the methodology will remain the same.

hazael wrote:
In general, the sales conversion itself can be easily added to the Virtuemart template in the "thank you" page.
It is not easy as you think. If you want to implement this without the VP Conversion Tracking plugin, you will have to customise each payment method's order confirmation page layout.
Post your reviews about us on our Facebook Page.
Post your testimonials and suggestions Here.
Don't forget to Close your topic when resolved.
The topic has been closed.