- Posts: 1
- Thank you received: 0
Measure convertions in contact form on the product pages
2 years 4 weeks ago #363752
by gensol
Measure convertions in contact form on the product pages was created by gensol
-- 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?
-- 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 or Create an account to join the conversation.
2 years 4 weeks ago #363753
by nicolas
Replied by nicolas on topic Measure convertions in contact form on the product pages
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:
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:
So that you would have the extra parameter "contact_request_sent" in the URL of the product page. Would that work for your need ?
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->redirect(hikashop_contentLink('product&task=show&cid='.$product->product_id.'&name='.$product->alias.$url_itemid, $product, false, true));
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->redirect(hikashop_contentLink('product&task=show&contact_request_sent=1&cid='.$product->product_id.'&name='.$product->alias.$url_itemid, $product, false, true));
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds