Home5 Conversions5 How to set a dynamic value for your conversions

How to set a dynamic value for your conversions

Jul 3, 2019 | Conversions, JotURL, Tracking Links

JotUrl provides users with dynamic conversion tracking capabilities.

This means that if you have multiple values that you want to track (for example, you’re selling multiple items with different prices), you can make the conversion value dynamic and you can include specific syntax in the JotUrl HTML conversion codes variables to record additional information. Adding dynamic values allows you to accurately track the cost of each purchase.

Unfortunately, the required syntax is not universal and it is specific to the shopping platform.

Therefore, we recommend asking your website developer to dynamically pass the value of the purchase: instead of adding a set value to the code, such as 0.00, your developer will add dynamic code that automatically determines the correct price of the sale

After creating the JotUrl conversion code on your dashboard and embedding it into the appropriate area of the shopping platform (usually, on the thank-you page), you will need to update the var joturl_conversion_value = ‘0.00’; with the respective syntax provided by you shopping platform. In the example below we’ve updated the value of the conversion with the syntax that can be used within Shopify.

<script type=’text/javascript’>
var joturl_conversion_id = ‘0123456789abcdef0123456789abcdef0123456789abcdef’;
var joturl_conversion_value = ‘{{ total_price | money_without_currency }}‘;
var joturl_conversion_commission = ‘0’;
var joturl_conversion_param = ”;
var joturl_domain_value = ‘www.joturl.com’;
</script>
<script type=’text/javascript’ src=’https://static.joturl.com/js/conversion.js’></script>
<noscript>
<img height=’0′ width=’0′ alt=” src=’https://www.joturl.com/c/?id=0123456789abcdef0123456789abcdef0123456789abcdef&val={{ total_price | money_without_currency }}&comm=0&param=’/>
</noscript>

Purchase variables vary from site to site, so you’ll have to work with your developer to understand your site’s variables. Here are some common examples:

Shopify:

{{ total_price | money_without_currency }}

Magento:

<?php echo $amount; ?>

WooCommerce:

<?php echo $order->get_total(); ?>

BigCommerce:

%%ORDER_SUBTOTAL%%

Squarespace:

{orderGrandTotal}

Share

Tags

Featured posts

The Best URLGenius Alternative in 2024

The Best URLGenius Alternative in 2024

Year 2024. The world of digital marketing is moving more and more towards the mobile sector, it is undeniable, there are many studies that confirm this. Just see our own daily habits, how much time do you spend in front of the phone every day? How much time do you...

Your All-In-One Link Management Solution

Everything you need to brand, track, and grow your business in one easy-to-use platform.