Rejoiner

Rejoiner Documentation

Explore our guides and examples to power your email channel with Rejoiner.

Get Started    Guides

Neto

Installing Rejoiner Scripts on Neto

  1. First, open Custom Scripts from the Neto admin interface. Then, navigate to Settings & Tools > All settings & tools > Custom Scripts
  1. Next, we'll add a new custom script. Click on the Add New button.
  1. Now we'll add the Page Header Tags. Name the script Rejoiner and make sure Page Header is selected.
  1. Paste the Page Header Tags
<!-- Rejoiner -->
<script type='text/javascript'>
var rejoinerAcct = {
    siteId: '{{ site_id }}',
    domain: '{{ site_domain }}',
};

var _rejoiner = _rejoiner || [];
_rejoiner.push(['setAccount', rejoinerAcct.siteId]);
_rejoiner.push(['setDomain', rejoinerAcct.domain]);
var rjVersion = rejoinerAcct.siteId.length !== 7 ? 'rejoiner' :'rj2';
(function() {
    var s = document.createElement('script'); s.type = 'text/javascript';
    s.async = true;
    s.src = 'https://cdn.rejoiner.com/js/v4/' + rjVersion + '.lib.js';
    var x = document.getElementsByTagName('script')[0];
    x.parentNode.insertBefore(s, x);
})();
</script>

[%if [@config:[email protected]] eq 'product'%]
<script type='text/javascript'>
_rejoiner.push(['trackProductView', {
    'product_id': '[@[email protected]]',
    'name': '[@[email protected]]',
    'price': Math.round([@[email protected]] * 100),
    'product_url': '[@[email protected]]',
    'image_url': '[@config:[email protected]][@[email protected]]',
}]);
</script>
[%/if%]

[%if [@config:[email protected]] eq 'checkout'%]
[%cart_items%]
[%param *header%]
<script type='text/javascript'>
_rejoiner.push(['setCartData', {
    'cart_value': Math.round([@cart:[email protected]] * 100),
    'cart_item_count': [@cart:[email protected]],
    'return_url': '[%url page:'checkout' type:'cart'/%]',
}]);
[%/param%]
[%param *body%]
_rejoiner.push(['setCartItem', {
    'product_id': '[@[email protected]]',
    'name': '[@[email protected]]',
    'price': Math.round([@[email protected]] * 100),
    'item_qty': [@[email protected]],
    'qty_price': Math.round([@[email protected]] * [@[email protected]] * 100),
    'product_url': '[@[email protected]]',
    'image_url': '[@config:[email protected]][@[email protected]]',
    [%if [@[email protected]] %]
    'description': '[@[email protected]]',
    [%/if%]
}]);
[%/param%]
[%param *footer%]
</script>
[%/param%]
[%/cart_items%]
[%/if%]
<!-- End Rejoiner -->
  1. Finally, we'll add the purchase confirmation tags. Make sure Purchase Confirmation (Thank You Page) is selected.
  1. Paste the purchase confirmation tags.
<!-- Rejoiner -->
<script type='text/javascript'>
_rejoiner.push(['sendConversion', {
    cart_data: {
        'cart_value': Math.round([@[email protected]] * 100),
        'cart_item_count': [@[email protected]],
        'customer_order_number': '[@[email protected]]',
        [%if [@[email protected]] %]
        'promo': '[@[email protected]]',
        [%/if%]
        'return_url': '[%url page:'account' type:'orders' id:'[@[email protected]] /%]',
    },
    [%show_order id:'[@[email protected]]'%]
    [%param *header%]
    cart_items: [
    [%/param%]
        [%param *body%]
        [%product sku:[@[email protected]]%]
        [%param *body%]
        {
            'product_id': '[@[email protected]]',
            'name': '[@[email protected]]',
            'price': Math.round([@[email protected]] * 100),
            'item_qty': [@[email protected]],
            'qty_price': Math.round([@[email protected]] * [@[email protected]] * 100),
            'product_url': '[@[email protected]]',
            'image_url': '[@config:[email protected]][@[email protected]]',
            [%if [@[email protected]] %]
            'description': '[@[email protected]]',
            [%/if%]
        },
        [%/param%]
        [%/product%]
        [%/param%]
    [%param *footer%]
    ]
    [%/param%]
    [%/show_order%]
}]);
</script>
<!-- End Rejoiner -->
  1. To complete the integration, click Save

Updated 26 days ago


Neto


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.