Author Topic: url for Thank You page for Google conversion tracking purpose  (Read 1118 times)

en jie rudd

  • Beginner
  • *
  • Posts: 36
url for Thank You page for Google conversion tracking purpose
« on: February 12, 2016, 05:48:34 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7590
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: url for Thank You page for Google conversion tracking purpose
« Reply #1 on: February 12, 2016, 23:56:53 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sorema

  • Beginner
  • *
  • Posts: 27
Re: url for Thank You page for Google conversion tracking purpose
« Reply #2 on: July 14, 2017, 10:47:41 am »
Quote
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

can you please explain? thank you..

parfumylacno

  • Beginner
  • *
  • Posts: 34
    • Lacne parfumy
  • VirtueMart Version: 3.0.18
Re: url for Thank You page for Google conversion tracking purpose
« Reply #3 on: August 23, 2017, 15:32:24 pm »
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

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 67
    • One Page Checkout for Virtuemart 2
Re: url for Thank You page for Google conversion tracking purpose
« Reply #4 on: September 05, 2017, 14:42:30 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9336
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: url for Thank You page for Google conversion tracking purpose
« Reply #5 on: September 06, 2017, 10:52:11 am »
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/