Post by belowcost » Sat Apr 20, 2024 4:31 am

Trying to add specific JS adword tracking code to specific pages to track

registrations successes
add to cart clicks
cart
completed cart

completed cart wont calculate because on the completed cart page, there is no order id number and no dollar amount so this page has an extra issue

tried doing this in theme editor, and also tried on the actual php pages, each time it throws a web site error

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Sat Apr 20, 2024 10:00 am

belowcost wrote:
Sat Apr 20, 2024 4:31 am
Trying to add specific JS adword tracking code to specific pages to track

registrations successes
add to cart clicks
cart
completed cart

completed cart wont calculate because on the completed cart page, there is no order id number and no dollar amount so this page has an extra issue

tried doing this in theme editor, and also tried on the actual php pages, each time it throws a web site error
These could be easily achieved by using event triggers. However, OC v3.0.3.3 release is quite old. The event trigger engine might of been reworked a bit since.

Completed cart?

As for the theme editor, I would not suggest to use the built-in editor but rather an installed and convenience editor.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by belowcost » Sat Apr 20, 2024 11:34 am

regarding: completed cart

this is the resulting page: /index.php?route=checkout/success

1. i need the code on
2. i need the resulting order number and confirming $$$ amount

to display


straightlight wrote:
Sat Apr 20, 2024 10:00 am
belowcost wrote:
Sat Apr 20, 2024 4:31 am
Trying to add specific JS adword tracking code to specific pages to track

registrations successes
add to cart clicks
cart
completed cart

completed cart wont calculate because on the completed cart page, there is no order id number and no dollar amount so this page has an extra issue

tried doing this in theme editor, and also tried on the actual php pages, each time it throws a web site error
These could be easily achieved by using event triggers. However, OC v3.0.3.3 release is quite old. The event trigger engine might of been reworked a bit since.

Completed cart?

As for the theme editor, I would not suggest to use the built-in editor but rather an installed and convenience editor.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Sat Apr 20, 2024 10:38 pm

belowcost wrote:
Sat Apr 20, 2024 11:34 am
regarding: completed cart

this is the resulting page: /index.php?route=checkout/success

1. i need the code on
2. i need the resulting order number and confirming $$$ amount

to display


straightlight wrote:
Sat Apr 20, 2024 10:00 am
belowcost wrote:
Sat Apr 20, 2024 4:31 am
Trying to add specific JS adword tracking code to specific pages to track

registrations successes
add to cart clicks
cart
completed cart

completed cart wont calculate because on the completed cart page, there is no order id number and no dollar amount so this page has an extra issue

tried doing this in theme editor, and also tried on the actual php pages, each time it throws a web site error
These could be easily achieved by using event triggers. However, OC v3.0.3.3 release is quite old. The event trigger engine might of been reworked a bit since.

Completed cart?

As for the theme editor, I would not suggest to use the built-in editor but rather an installed and convenience editor.
This extension may help as only small modifications might be needed to achieve this: https://www.opencart.com/index.php?rout ... n_id=36046 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 5 guests