There are a couple of Javascript errors that can be seen in the code checker on upload and when viewing the receipt page in the 'Design' tab of the software, one error has the potential to stop Google Analytics working correctly.
The first error is because the general outer layout has the 'Google Analytics Tracking Code' at the foot of the page whereas in the receipt page, this code must be in the header.
The solution, is to move the following code: -
from the 'UXSubBodyCode Swift' layout (this will appear as 'Google Analytics Tracking Code' in pink, around line:9) to the 'UXHeadCode Swift' layout, both of these layouts can be found in the group 'UX Template' within 'Design | Library | Layouts'.
The second error can be resolved by going to 'Design | Library | Layouts' and scrolling down to the 'Web Page Inner Layout' and opening the layout 'Receipt Page Bulk RWD'.
Scroll down to line: 60 where you should see: -
and placing single quotation marks around NETQUOTEVAR:ORDERTOTALBASEUNIT so that it looks like this: -
Once this has been done upload the site for the changes to appear online.
The first error is because the general outer layout has the 'Google Analytics Tracking Code' at the foot of the page whereas in the receipt page, this code must be in the header.
The solution, is to move the following code: -
Code:
<actinic:variable name="GoogleAnalyticsMarkup" value="Google Analytics Tracking Code" />
The second error can be resolved by going to 'Design | Library | Layouts' and scrolling down to the 'Web Page Inner Layout' and opening the layout 'Receipt Page Bulk RWD'.
Scroll down to line: 60 where you should see: -
Code:
window.uetq.push({ 'gv' : NETQUOTEVAR:ORDERTOTALBASEUNIT, 'gc': 'GBP' });
Code:
window.uetq.push({ 'gv' : 'NETQUOTEVAR:ORDERTOTALBASEUNIT', 'gc': 'GBP' });