Please note that this is the help section for the former Newsletter2Go software.

How Can I Use Conversion Tracking at Newsletter2Go?

Basic Functionality

To use conversion tracking, you first need to enable this feature. From the drop-down menu under your Newsletter2Go account (at the top right), select Email Settings. Under the Tracking tab, switch on the option for Conversions. You'll see your account ID next to the option to switch on conversions.

There are several calls available that make it possible to track goals achieved. These are executed via  Google Analytics Tracking. When tracking conversions, you also have the reporting option to transfer additional product details – such as price, name, category and quantity – into your Newsletter2Go account.

Please note that to track conversions, we set a cookie when one of your contacts clicks a link in a mailing. The cookie is valid for 30 days. Conversions are registered and sent back to us only if your contact clicks the link from the email – this action sets the cookie. This means that if a recipient makes a conversion after 30 days or in a browser without valid cookies (e.g., in incognito mode or via a separate device), the conversion cannot be tracked – even if it came from your mailing. 

1. Embed and initialize 

Embed the conversion-tracking JavaScript snippet (below) into the HTML of your desired landing page and initialize it. To make the snippet work for you, you will need to replace Your ID (below) with your account ID (see above).

<script id="n2g_script">     !function(e,t,n,c,r,a,i){e.Newsletter2GoTrackingObject=r,e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},e[r].l=1*new Date,a=t.createElement(n),i=t.getElementsByTagName(n)[0],a.async=1,a.src=c,i.parentNode.insertBefore(a,i)}(window,document,"script","","n2g");     n2g('create', 'Your ID'); </script>

2. Create transaction and product details

First, create one or several transactions. A transaction (an order) consists of at least one transaction ID as well as further details regarding the transaction as a whole. Below are all possible fields:

n2g('ecommerce:addTransaction', {
    'id': '1234',                                   // Transaction ID. Required.
    'affiliation': 'Acme Clothing',                 // Affiliation or store name.
    'revenue': '11.99',                             // Grand Total.
    'shipping': '5',                                // Shipping.
    'tax': '1.29'                                   // Tax.

It is also possible to attach one or several items (products) to each transaction. Make sure that the transaction ID matches, and that the transaction has been created first. After you've set up the transaction, you can include additional details, such as the name or price of the product. 

Below are all possible fields:

n2g('ecommerce:addItem', {
    'id': '1234',                                   // Transaction ID. Required.
    'name': 'Fluffy Pink Bunnies',                  // Product name. Required.
    'sku': 'DD23444',                               // SKU/code.
    'category': 'Party Toys',                       // Category or variation.
    'price': '11.99',                               // Unit price.
    'quantity': '1'                                 // Quantity.
Note that the calls above represent JavaScript functions and may need to be enclosed by additional <script /> tags. 

3. Send the conversion

Once you have created all transactions, including products, set the conversion to send (e.g., onload or onclick). This will send the data to us and assign it to your email. You'll now be able to see conversions in the corresponding email campaign reports. 


Note that the call above represents a JavaScript functions and may need to be enclosed by additional <script /> tags.