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
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
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..
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
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
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.