[Skip to main content](#vessel-content)

#   Modify Google Conversion Code

##

- **[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")**
- [![rodfarrell's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5859-rodfarrell "View rodfarrell's Profile") Topic Author
- [ Offline](/forum/user/5859-rodfarrell)

Less More

- Posts: 259
- Thank you received: 22
-
-

11 years 8 months ago [\#193991](#193991) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  *[Modify Google Conversion Code](/forum/27-checkout/875554-modify-google-conversion-code#193991 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I have added Google Analytics conversion code to the view checkout-afterend and was wondering how I could inject the actual value of the shopping cart into the script to replace Googles estimated value.  In the Google script is the line:  var google&#95;conversion&#95;value = 1.000000;  and I want to replace the 1.00000 with the total value of the cart.")* was created by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

I have added Google Analytics conversion code to the view checkout-afterend and was wondering how I could inject the actual value of the shopping cart into the script to replace Googles estimated value.

In the Google script is the line:

var google_conversion_value = 1.000000;

and I want to replace the 1.00000 with the total value of the cart.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTU1NC1tb2RpZnktZ29vZ2xlLWNvbnZlcnNpb24tY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 8 months ago [\#194077](#194077) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Modify Google Conversion Code](/forum/27-checkout/875554-modify-google-conversion-code#194077 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I have added Google Analytics conversion code to the view checkout-afterend and was wondering how I could inject the actual value of the shopping cart into the script to replace Googles estimated value.  In the Google script is the line:  var google&#95;conversion&#95;value = 1.000000;  and I want to replace the 1.00000 with the total value of the cart.")*

Hi,

In "after_end" view, you have access to the order object Code:

$this-&gt;order;

It means that you can read any value from the order to display/use it in the view, like Code:

$this-&gt;order-&gt;order_full_price;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTU1NC1tb2RpZnktZ29vZ2xlLWNvbnZlcnNpb24tY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.063 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
