Skip to main content
Lander Snippets
Updated over a week ago

Frequently, you’ll have repetitive fragments of code in your landers (for example a link to the offeror a tracking pixel code). To eliminate this Zeustrack offers the code snippets for Zeustrack Cloud landers. With Zeustrack you only need to specify a snippet of the lander code. Once the lander is loaded the entire code will be rendered.

Example:

If you’ve created offer URL snippet or Facebook pixel snippet you can simply type in the lander code editor {snippet:offer_url} and {snippet:fbpixel}.


Instructions

To create a snippet go to Lander > Lander Snippets and press the New Snippet button.

Placeholder

This field is where you type the name of the snippet and the text can then be used when inserting the snippet inside your code.

Description

This is an optional field describing what the snippet does; useful when you have a number of team members.

Snippet

This is the actual repetitive code you will use as a snippet.

To use, just type {snippet:SNIPPET_NAME} within your lander code. We recommend creating at least two of the most utilized snippets: {snippet:offer_url} and {snippet:fbpixel}. See the example code below.


Snippet examples

  • Offer URL

http://{trackingdomain}/click/?origin={origin}
  • Facebook pixel

<script> var _fbpixel = '{lander.param:fbpixel}'; if (_fbpixel) { !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','//connect.facebook.net/en_US/fbevents.js'); fbq('init', _fbpixel); fbq('track',"PageView"); } else { var fbq = function(){}; } </script> <noscript><img height="1"style="display:none"src="https://www.facebook.com/tr?id={lander.param:fbpixel}&ev=PageView&noscript=1"/></noscript>

Zeustrack tip:

You can use placeholders in your snippets. Refer to this instructions for more info about placeholders.

Did this answer your question?