OpenCart: Difference between revisions

From Growth Agency Wiki
Jump to navigation Jump to search
Created page with "= Google Tag Manager = Install Tag Manager Main Template file: <pre> /catalog/view/theme/<<Theme Folder>>/template/common/header.tpl </pre> == Conversion URLS == Contact Thank-you URL: <pre> index.php?route=information/contact/success </pre> sale Thank-you URL: <pre> index.php?route=checkout/success </pre> == Conversion Value == An OpenCart module called VQMOD is required to insert it into the code. <pre> vqmod/xml/get_total_to_success.xml </pre>"
 
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Google Tag Manager =
= Google Tag Manager =


Install Tag Manager
Install Tag Manager.
*Note, the OCmod & VQmod scripts below insert the Tag Manager.


Main Template file:
Main Template file:
Line 14: Line 15:
</pre>
</pre>


sale Thank-you URL:
Sale Thank-you URL:
<pre>
<pre>
index.php?route=checkout/success
index.php?route=checkout/success
</pre>
Account Creation URL:
<pre>
index.php?route=account/success
</pre>
</pre>


== Conversion Value ==
== Conversion Value ==


An OpenCart module called VQMOD is required to insert it into the code.
The easiest and most reliable way to install the Conversion value tracking is via extensions that inject the code directly into core files.<br />
These are upgrade safe! (The worst that can happen is that a reference can change and the code is not injected)<br />
Before using these, it is best to check that the references are the same.<br />
<b>Change the GTM ID's in the scripts!</b>.<br />
<br /><br />
OpenCart 2.x uses .tpl files<br />
OpenCart 3.x uses .twig files<br />
 
=== VQmod ===
An OpenCart extension called VQmod is required to insert it into the code.
<pre>
<pre>
vqmod/xml/get_total_to_success.xml
vqmod/xml/get_total_to_success.xml
</pre>
[[Media:Get total to success.xml|Get_total_to_success.xml]]
=== OCmod ===
An OpenCart extension called OCmod is required to insert it into the code.
Opencart v3.0 Onwards:
[[Media:Gtm.ocmod.zip|Gtm.ocmod.zip]]
Opencart v2.0:
[[Media:Gtm-2x.ocmod.zip|Gtm-2x.ocmod.zip]]
= Feeds =
The Google Base extension will need to be installed and activated.
<pre>
http://docs.opencart.com/en-gb/extension/feed/
</pre>
<br />
The URL for the generated Feed:
<pre>
/index.php?route=feed/google_base
/googlebase.xml
</pre>
</pre>

Latest revision as of 08:50, 5 September 2024

Google Tag Manager

Install Tag Manager.

  • Note, the OCmod & VQmod scripts below insert the Tag Manager.

Main Template file:

/catalog/view/theme/<<Theme Folder>>/template/common/header.tpl 

Conversion URLS

Contact Thank-you URL:

index.php?route=information/contact/success

Sale Thank-you URL:

index.php?route=checkout/success

Account Creation URL:

index.php?route=account/success

Conversion Value

The easiest and most reliable way to install the Conversion value tracking is via extensions that inject the code directly into core files.
These are upgrade safe! (The worst that can happen is that a reference can change and the code is not injected)
Before using these, it is best to check that the references are the same.
Change the GTM ID's in the scripts!.


OpenCart 2.x uses .tpl files
OpenCart 3.x uses .twig files

VQmod

An OpenCart extension called VQmod is required to insert it into the code.

vqmod/xml/get_total_to_success.xml

Get_total_to_success.xml

OCmod

An OpenCart extension called OCmod is required to insert it into the code.

Opencart v3.0 Onwards: Gtm.ocmod.zip

Opencart v2.0: Gtm-2x.ocmod.zip

Feeds

The Google Base extension will need to be installed and activated.

http://docs.opencart.com/en-gb/extension/feed/


The URL for the generated Feed:

/index.php?route=feed/google_base
/googlebase.xml