News:

Looking for documentation? Take a look on our wiki

Main Menu

url for Thank You page for Google conversion tracking purpose

Started by en jie rudd, February 12, 2016, 05:48:34 AM

Previous topic - Next topic

en jie rudd

Hello

I have been trying to set up my e-commence conversion tracking on Google Analytics and need a url for the 'Thank you for your order page' but not the 'cart.html' page. As a visit to the cart may not be a conversion - I myself do it often to check the postages of e-commence sites. I have tried to look into my Joomla, Virtuemart and sh404sef config but so far the 'thank you' page url is identical to the 'cart' page, although the content of the page (obviously) has changed after the 'confirm order' button is hit.

My site:
Joomla 3.4.8
Virtuemart 3.0.10
sh404sef 4.7.2.3180
third party One Page Checkout ( I have turned this plugin off and use Virtuemart default checkout and the issue remains)

Any advice on how to generate a 'after conversion' url will be much appreciated.

Thank you in advance for the help!

Best regards

En Jie

GJC Web Design

generally this is done by inserting the Google tracking code in the html that is returned by the payment plugin to the thank you display

I guess something like doing a redirect to a Joomla article from the payment plugin would be another approach
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sorema

Quotegenerally this is done by inserting the Google tracking code in the html that is returned by the payment plugin to the thank you display

can you please explain? thank you..

parfumylacno

hi you have to insert this Google conversion tracking code to this file:
/web/templates/NameOfYourTemplate/html/com_virtuemart/cart and there is file order_done.php = open it and insert google tracking code
at least it works for me.

Good luck
Owner of e-shop https://www.parfumylacno.sk with perfumes FM Group

stAn99

hello, there is no way to get single REAL URL to be used, but the URL can get overriden. our OPC Tracking (RuposTel One Page Checkout's Tracking feature) always sends custom URL to Google Analytics and thus you always have one thank you page URL.

it sends the URL with this API (when you use GA code):

https://developers.google.com/analytics/devguides/collection/analyticsjs/pages

i.e. within an article shown at the thank you page (or modified templates of your payment plugins which generate the thank you page) you can use this:

ga('send', {
  hitType: 'pageview',
  page: '/thank-you'
});


if you are using GTM trackign which is a bit more complex you'd need to investigate what events you've set up to be used for that thank you pages and adjust your GTM config so it overwrites the URL that is sent to GA. this has to be done in GTM:

http://dcarlbom.com/google-tag-manager/rewrite-a-fragment-based-url-with-google-tag-manager-for-better-site-search-in-google-analytics/#gref

best regards, stan
----
RuposTel.com
www.rupostel.com
Your customized checkout solution for Virtuemart

Milbo

mydomain/index.php?option=com_virtuemart&view=cart&layout=order_done

Is the link and imho the right way it so add it to the order_done page.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/