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

#   Measure convertions in contact form on the product pages

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

2 years 1 month ago [\#363752](#363752) by [gensol](/forum/user/80456-gensol "View gensol's Profile")  *[Measure convertions in contact form on the product pages](/forum/26-product-category-display/908721-measure-convertions-in-contact-form-on-the-product-pages#363752 "-- HikaShop version -- : HikaShop Business 5.1.1 &#91;2410012233&#93; -- Joomla version -- : 5.1.4 -- PHP version -- : 8.3 -- Browser(s) name and version -- : 129.0.6668.90 (Offisiell delversjon) (64-bit)  Thanks for a great product.  We are using the contact button on the product pages.  We want to be able to measure conversions in Google Analytics in how this form is used. Ideally there should have been a separate URL or similar to be able to measure when the form has been submitted. Is there a solution for this?")* was created by *[gensol](/forum/user/80456-gensol "View gensol's Profile")*

-- HikaShop version -- : HikaShop Business 5.1.1 [2410012233]
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.3
-- Browser(s) name and version -- : 129.0.6668.90 (Offisiell delversjon) (64-bit)

Thanks for a great product.

We are using the contact button on the product pages.

We want to be able to measure conversions in Google Analytics in how this form is used. Ideally there should have been a separate URL or similar to be able to measure when the form has been submitted. Is there a solution for this?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

2 years 1 month ago [\#363753](#363753) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Measure convertions in contact form on the product pages](/forum/26-product-category-display/908721-measure-convertions-in-contact-form-on-the-product-pages#363753 "-- HikaShop version -- : HikaShop Business 5.1.1 &#91;2410012233&#93; -- Joomla version -- : 5.1.4 -- PHP version -- : 8.3 -- Browser(s) name and version -- : 129.0.6668.90 (Offisiell delversjon) (64-bit)  Thanks for a great product.  We are using the contact button on the product pages.  We want to be able to measure conversions in Google Analytics in how this form is used. Ideally there should have been a separate URL or similar to be able to measure when the form has been submitted. Is there a solution for this?")*

Hi,

You're the first one bringing this out.
By default, the system will redirect back to the product details page.
This is done with the line: Code:

$app-&gt;redirect(hikashop_contentLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.'&amp;name='.$product-&gt;alias.$url_itemid, $product, false, true));

in the file components/com_hikashop/controllers/product.php
So a solution, if I understand correctly your problematic, would be to add an extra parameter to that redirect line of code.
For example: Code:

$app-&gt;redirect(hikashop_contentLink('product&amp;task=show&amp;contact_request_sent=1&amp;cid='.$product-&gt;product_id.'&amp;name='.$product-&gt;alias.$url_itemid, $product, false, true));

So that you would have the extra parameter "contact_request_sent" in the URL of the product page. Would that work for your need ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg3MjEtbWVhc3VyZS1jb252ZXJ0aW9ucy1pbi1jb250YWN0LWZvcm0tb24tdGhlLXByb2R1Y3QtcGFnZXM/dG1wbD1tYXJrZG93bg==) 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.049 seconds

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