Measure convertions in contact form on the product pages

  • Posts: 1
  • Thank you received: 0
  • Hikashop Business
2 months 1 week ago #363752

-- 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 or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
2 months 1 week ago #363753

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:

$app->redirect(hikashop_contentLink('product&task=show&cid='.$product->product_id.'&name='.$product->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:
$app->redirect(hikashop_contentLink('product&task=show&contact_request_sent=1&cid='.$product->product_id.'&name='.$product->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 or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum