Back

The Currency Converter extension allows you to convert the value of a data layer variable from one currency to another. This extension requires the Tealium Currency Converter Tag, but can be scoped to All Tags or any specific tag.

In this article:

Table of Contents Placeholder

How It Works

The Currency Converter extension works with the Tealium Currency Converter tag, which makes the exchange rates available to the extension. The extension is used to convert the value of a data layer variable in one currency into a different currency. The extension can be configured to convert many data layer variables. Each conversion is controlled by a load rule to help run the conversion only when needed.

Example

On your site, customers can make purchases in any currency, but one tag vendor always expects amounts to be sent as USD values. Here are the components needs to convert a data layer variable from many currencies into USD:

  • Currency Load Rules
    Create a load rule for each currency that a customer might use, such as:
     site_currency equals (ignore case) GBP
    iq-currency-load-rule.jpg
  • Currency Converter Extension
    Add a currency conversion for each currency that your site supports and for each data layer variable that needs to be converted. Notice how this example is scoped to the specific tag that requires all values be sent in USD.
    iq-currency-extension.jpg

Adding the Extension

Follow these steps to add and configure the extension:

  1. Navigate to the Extensions tab and click Add Extension.
  2. Go to the Tag-Specific tab and add the Currency Converter extension.
  3. Enter a descriptive title.
  4. Set the Scope to a specific tag or to All Tags. 
  5. Click Add Currency Conversion to add a new conversion, then set the following fields (repeat this step as needed):
    • Convert - the data layer variable containing the value to convert.
    • On Conditionthe load rule used to trigger the conversion.
    • From Currency - the currency of the current value.
    • To Currency - the currency of the new, converted value.
  6. Save and publish the changes.