<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Automation: Published Ordered Knowledge Base: : | MaxTraffic Knowledge Base</title>
    <description>Published Ordered Knowledge Base: Automation</description>
    <generator>Helprace RSS</generator>
    <link>https://help.maxtraffic.com/s1-general/knowledgebase/c10-automation?format=rss</link>
    <item>
      <title>Saving user ID in MaxTraffic</title>
      <description><![CDATA[<p>For many automations to work, you will need to connect your system's user ID with MaxTraffic.</p>
<p>To do that, you need to use following JavaScript code. This example assumes that you are using Google Tag Manager and have created a user_id variable that contains your system's user ID.</p>
<p>We recommend to add this code at the end of MaxTraffic tracking code. The default tracking code looks like this:</p>
<p>If you add the part about saving user ID, then everything together should look similar to this example:</p>
<p>Important:</p>
<ul>
<li>Replace 12345 with your website ID</li>
<li>Replace {{user_id}} with the GTM variable you use for[_cuted_]</li></ul>]]></description>
      <pubDate>Fri, 16 Oct 2020 07:40:55 +0000</pubDate>
      <link>https://help.maxtraffic.com/i104-saving-user-id-in-maxtraffic</link>
      <guid>https://help.maxtraffic.com/i104-saving-user-id-in-maxtraffic</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>For many automations to work, you will need to connect your system's user ID with MaxTraffic.</p>
<p>To do that, you need to use following JavaScript code. This example assumes that you are using Google Tag Manager and have created a <span style="color: #ff0000;"><b>user_id</b></span> variable that contains your system's user ID.</p>
<pre class="language-javascript"><code>&lt;script&gt;
//get user id
var mt_user_id = parseInt({{user_id}}) || null;

if(mt_user_id) {
    //save user id
    mt('set', 'userId', mt_user_id);
}
&lt;/script&gt;</code></pre>
<p>We recommend to add this code at the end of MaxTraffic tracking code. The default tracking code looks like this:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', 12345);
&lt;/script&gt;
&lt;script async src="//cdn.mxapis.com/mt.js"&gt;&lt;/script&gt;</code></pre>
<p>If you add the part about saving user ID, then everything together should look similar to this example:</p>
<pre class="language-javascript"><code>&lt;script&gt;
window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', 12345);
&lt;/script&gt;
&lt;script async src="//cdn.mxapis.com/mt.js"&gt;&lt;/script&gt;

&lt;script&gt;
//get user id
var mt_user_id = parseInt({{user_id}}) || null;

if(mt_user_id) {
  //save user id
  mt('set', 'userId', mt_user_id);
}
&lt;/script&gt;</code></pre>
<p><span style="color: #ff0000;"><b>Important:</b></span></p>
<ul>
<li>Replace <b>12345</b> with your website ID</li>
<li>Replace <b>{{user_id}}</b> with the GTM variable you use for user ID</li></ul>]]></content:encoded>
    </item>
    <item>
      <title>Intro to Web Push Notification sequence (drip) campaigns</title>
      <description><![CDATA[<p>Sequence campaigns for Web Push Notifications are launched in Test mode. If you want to be involved in testing period and be one of our first clients, who use this functionality, please get in touch with your account manager or support@maxtraffic.com </p>
<p>There are 2 type of Sequence (Drip) campaigns:</p>
<p>1. Sequence campaign that starts with a Subscribe event (when website visitor clicks "allow" and gives his permission to receive Web Push Notifications)</p>
<p>2. Sequence campaign that starts with a Custom event - this type of campaign is activated by executing a small JavaScript code, and can be used in different kind[_cuted_]</p>]]></description>
      <pubDate>Thu, 30 Jan 2020 10:24:18 +0000</pubDate>
      <link>https://help.maxtraffic.com/i102-intro-to-web-push-notification-sequence-drip-campaigns</link>
      <guid>https://help.maxtraffic.com/i102-intro-to-web-push-notification-sequence-drip-campaigns</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>Sequence campaigns for Web Push Notifications are launched in Test mode. If you want to be involved in testing period and be one of our first clients, who use this functionality, please get in touch with your account manager or <a href="mailto:support@maxtraffic.com" rel="nofollow">support@maxtraffic.com</a> </p>
<p>There are 2 type of Sequence (Drip) campaigns:</p>
<p>1. Sequence campaign that starts with a <b>Subscribe event</b> (when website visitor clicks "allow" and gives his permission to receive Web Push Notifications)</p>
<p>2. Sequence campaign that starts with a <b>Custom event</b> - this type of campaign is activated by executing a small JavaScript code, and can be used in different kind of use cases. Couple of examples:</p>
<ul>
<li>Campaign that starts after an application form is finished</li>
<li>Campaign that starts after a purchase is done</li>
<li>Campaign that starts after visiting a specific category or page</li>
<li>Campaign that starts after user shows some kind of engagement (starts an application form, opens contact page, visits product page, spends X amount of time in website, etc.)</li>
</ul>
<p>For more details see following links:</p>
<ul>
<li><a href="https://help.maxtraffic.com/i101-web-push-sequence-campaigns-subscribe-event">Web Push Sequence campaigns: <b>Subscribe event</b></a></li>
<li><a href="https://help.maxtraffic.com/i103-web-push-sequence-campaigns-custom-event">Web Push Sequence campaigns: <b>Custom event</b></a></li>
</ul>
<div> </div>]]></content:encoded>
    </item>
    <item>
      <title>Web Push Sequence campaigns: Subscribe event</title>
      <description><![CDATA[<p>Subcribe event happens when website visitor clicks "allow" and gives his permission to receive Web Push Notifications. </p>
<p>To create a sequence campaign based on this trigger:</p>
<p>1. Login in your e.maxtraffic.com account, then go to Automation &gt; Sequence</p>
<p>2. Click "New Sequence"</p>
<p></p>
<p>3. Follow next steps below.</p>
<p>Creating new sequence campaign</p>
<p></p>
<p>1. Set campaign name </p>
<p>By default it will be "New Sequence", but we recommend to set a campaign name that matches the idea behind it, for example - "Welcome campaign"</p>
<p>2. Choose trigger</p>
<p>Select "Trigger on Visitor Subscribe" - campaign will start when a visitor subscribes to Web Push</p>
<p>3.[_cuted_]</p>]]></description>
      <pubDate>Thu, 30 Jan 2020 09:45:38 +0000</pubDate>
      <link>https://help.maxtraffic.com/i101-web-push-sequence-campaigns-subscribe-event</link>
      <guid>https://help.maxtraffic.com/i101-web-push-sequence-campaigns-subscribe-event</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p><b>Subcribe event</b> happens when website visitor clicks "allow" and gives his permission to receive Web Push Notifications. </p>
<p>To create a sequence campaign based on this trigger:</p>
<p>1. Login in your e.maxtraffic.com account, then go to Automation &gt; <a href="https://e.maxtraffic.com/#/sequences">Sequence</a></p>
<p>2. Click "New Sequence"</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/web_push_sequence_new.png" alt="" data-file="___chdfid_6694___"></p>
<p>3. Follow next steps below.</p>
<h2>Creating new sequence campaign</h2>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/web_push_drip_subscribe.png" alt="" data-file="___chdfid_6704___"></p>
<p><b>1. Set campaign name </b></p>
<p>By default it will be "New Sequence", but we recommend to set a campaign name that matches the idea behind it, for example - "<i>Welcome campaign</i>"</p>
<p><b>2. Choose trigger</b></p>
<p>Select "<i>Trigger on Visitor Subscribe</i>" - campaign will start when a visitor subscribes to Web Push</p>
<p><b>3. Send first message with a delay?</b></p>
<p>Here you can choose, if you want the first message be sent immediately or after a delay. Maybe you might want to send a "Thank you" message immediately after subscribing and other messages later.</p>
<p><b>4. Edit message </b></p>
<p>Click on edit icon to create the message content - set Title, Description, add Big Image if needed, Buttons, Links, and so on until you feel that the message is ready! Note that you will be able to edit message content at any time - also after the campaign is launched.</p>
<p><b>5. Create more messages in sequence campaign</b></p>
<p>Click "copy" button after the last message to add a new message in your sequence campaign. To make things easier, the new message will be a 100% copy of your previous message - that is done with idea that maybe links, UTMs, buttons or images will be the same, and then you only need to create/edit those parts of the new message that are different from previous message.</p>
<h2>Saving your sequence campaign</h2>
<p>After you are finished with creating your campaign, click "Save", and note that 3 options will appear:</p>
<p><b>Save &amp; Publish</b></p>
<p>If you choose to save and publish - this will activate your sequence campaign and it will become "Live". In short - visitors who subscribe to web push after this campaign is published, will start receiving the messages from your subscribe sequence campaign.</p>
<p><span style="color: #ff0000;">Important: after sequence campaign is published, you will NOT be able to change delays or add/delete messages in sequence campaign, but you will be able to change message content.</span></p>
<p><b>Save Draft</b></p>
<p>If you don't want to launch the sequence campaign yet, or it needs more changes - save it as draft. That way campaign will not be shown to anyone, and you can make any changes later as well - add or delete messages, change delays, change content, etc.</p>
<p><b>Close</b></p>
<p>Click "Close" if you want to continue editing your campaign.</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/sequence_save.png" alt="" data-file="___chdfid_6696___"></p>
<h2>Edit your campaign</h2>
<p>After you have created your campaign, you can later make changes by going to Automation &gt; <a href="https://e.maxtraffic.com/#/sequences">Sequence</a> and clicking on Settings icon that is located on the right side of campaign table:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/sequence_settings.png" alt="" data-file="___chdfid_6697___"></p>
<p>Then click "Edit":</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/sequence_edit.png" alt="" data-file="___chdfid_6698___"></p>
<p>By default messages will be opened in "Full view" mode, so you can see full preview of each message - that includes Title, Description, Big Image, Icon:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/sequence_edit_view.png" alt="" data-file="___chdfid_6699___"></p>
<p>But you can also click on "Compact View" - that will switch to a version where messages are shown in a way that can give a better overview of all the campaign:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/Screenshot%202020-01-29%2016.49.32.png" alt="" data-file="___chdfid_6700___"></p>
<h2>How to get started?</h2>
<p>If you are new to sequence campaigns, we recommend to start with a Subscribe sequence campaign because of two reasons:</p>
<ol>
<li>It will be triggered by all your new subscribers after campaign is published</li>
<li>You don't need to execute a custom JavaScript code like it is in a Custom sequence</li>
</ol>
<p>The message content and length of sequence campaign is up to you - it can contain 5, 20 or 100 messages, but if the goal is to convert visitor to a client, we recommend to send messages with higher frequency in the beginning, and less frequent later.</p>
<div> </div>]]></content:encoded>
    </item>
    <item>
      <title>Web Push Sequence campaigns: Custom event</title>
      <description><![CDATA[<p>If you want to create a campaign that is triggered on a Custom Event, for example in one of these cases:</p>
<ul>
<li>Campaign that starts after an application form is finished</li>
<li>Campaign that starts after a purchase is done</li>
<li>Campaign that starts after visiting a specific category or page</li>
<li>Campaign that starts after user shows some kind of engagement (starts an application form, opens contact page, visits product page, spends X amount of time in website, etc.)</li>
</ul>
<p>Then you have to do these things:</p>
<p>1. Login in your e.maxtraffic.com account, then go to Automation &gt; Sequence</p>
<p>2. Click "New Sequence"</p>
<p></p>
<p>3. Follow[_cuted_]</p>]]></description>
      <pubDate>Thu, 30 Jan 2020 10:30:24 +0000</pubDate>
      <link>https://help.maxtraffic.com/i103-web-push-sequence-campaigns-custom-event</link>
      <guid>https://help.maxtraffic.com/i103-web-push-sequence-campaigns-custom-event</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>If you want to create a campaign that is triggered on a Custom Event, for example in one of these cases:</p>
<ul>
<li>Campaign that starts after an application form is finished</li>
<li>Campaign that starts after a purchase is done</li>
<li>Campaign that starts after visiting a specific category or page</li>
<li>Campaign that starts after user shows some kind of engagement (starts an application form, opens contact page, visits product page, spends X amount of time in website, etc.)</li>
</ul>
<p>Then you have to do these things:</p>
<p>1. Login in your e.maxtraffic.com account, then go to Automation &gt; <a href="https://e.maxtraffic.com/#/sequences">Sequence</a></p>
<p>2. Click "New Sequence"</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/web_push_sequence_new.png" alt=""></p>
<p>3. Follow next steps below.</p>
<h2>Creating new sequence campaign</h2>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/103/media/web_push_sequence_custom_campaign.png" alt="" data-file="___chdfid_8738___"></p>
<p><b>1. Set campaign name </b></p>
<p>By default it will be "New Sequence", but we recommend to set a campaign name that matches the idea behind it, for example - "<i>Drip campaign after purchase</i>"</p>
<p><b>2. Choose trigger</b></p>
<p>Select "<i>Trigger on Custom Event</i>" - campaign will start when a custom JavaScript code will be executed.</p>
<p><b>3. Send first message with a delay?</b></p>
<p>Here you can choose, if you want the first message from your sequence campaign to be sent immediately or after a delay. </p>
<p><b>4. Edit message </b></p>
<p>Click on edit icon to create the message content - set Title, Description, add Big Image if needed, Buttons, Links, and so on until you feel that the message is ready! Note that you will be able to edit message content at any time - also after the campaign is launched.</p>
<p><b>5. Create more messages in sequence campaign</b></p>
<p>Click "copy" button after the last message to add a new message in your sequence campaign. To make things easier, the new message will be a 100% copy of your previous message - that is done with idea that maybe links, UTMs, buttons or images will be the same, and then you only need to create/edit those parts of the new message that are different from previous message.</p>
<h2>How to choose trigger name?</h2>
<p>When you select <b>Trigger on Custom Event</b> as a trigger, you will also have to  decide what your custom event will be called. The default value will be "<i>webpush:custom_event</i>", but you need to change it to your own name. Some examples of possible Event names:</p>
<ul>
<li>webpush:order_completed</li>
<li>webpush:checkout_started</li>
<li>webpush:promotion_viewed</li>
<li>Checkout Started</li>
<li>Order Completed</li>
<li>Promotion Viewed</li>
<li>order_completed</li>
<li>checkout_started</li>
<li>promotion_viewed</li>
</ul>
<p>For example, if you have set "<i>Order Completed</i>" as event name, it will look like in the screenshot below:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/103/media/new_sequence_name.png" alt="" data-file="___chdfid_8739___"></p>
<h2>Saving your sequence campaign</h2>
<p>When saving campaign, you will be shown a JavaScript code - this code will need to be placed either in Google Tag Manager or installed by your IT team.</p>
<p>And this code needs to be executed at the moment when the custom event occurs.</p>
<p>In our example, we want to execute this code after visitor has finished his order, so we need to execute the code in the "Thank You" page after the purchase.</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/Screenshot%202020-01-30%2010.30.53.png" alt=""></p>
<p>Just like in any other sequence campaign, you also have 3 options:</p>
<p><b>Save &amp; Publish</b></p>
<p>If you choose to save and publish - this will activate your sequence campaign and it will become "Live". In short - if your chosen trigger is executed, then the visitor who executed the trigger - will start receiving the messages that are defined in that specific sequence campaign.</p>
<p><span style="color: #ff0000;">Important: after sequence campaign is published, you will NOT be able to change delays or add/delete messages in sequence campaign, but you will be able to change message content.</span></p>
<p><b>Save Draft</b></p>
<p>If you don't want to launch the sequence campaign yet, or it needs more changes - save it as draft. That way campaign will not be shown to anyone, and you can make any changes later as well - add or delete messages, change delays, change content, etc.</p>
<p><b>Close</b></p>
<p>Click "Close" if you want to continue editing your campaign.</p>
<h2>Edit your campaign</h2>
<p>After you have created your campaign, you can later make changes by going to Automation &gt; <a href="https://e.maxtraffic.com/#/sequences">Sequence</a> and clicking on Settings icon that is located on the right side of campaign table:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/sequence_settings.png" alt=""></p>
<p>Then click "Edit":</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/sequence_edit.png" alt=""></p>
<p>By default messages will be opened in "Full view" mode, so you can see full preview of each message - that includes Title, Description, Big Image, Icon:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/sequence_edit_view.png" alt=""></p>
<p>But you can also click on "Compact View" - that will switch to a version where messages are shown in a way that can give a better overview of all the campaign:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/101/media/Screenshot%202020-01-29%2016.49.32.png" alt=""></p>
<h2>How to get started?</h2>
<p>If you want to create a sequence campaign that is based on a Custom Event, follow these steps</p>
<ol>
<li>Decide what the "custom event" will start the sequence?</li>
<li>Create sequence campaign in MaxTraffic</li>
<li>Install the custom JavaScript code either with help of your IT team, or by adding it in Google Tag Manager, so that this JavaScript code is executed when the event happens</li>
</ol>
<p>The message content and length of sequence campaign is up to you - it can contain 5, 20 or 100 messages, but if the goal is to convert visitor to a client, we recommend to send messages with higher frequency in the beginning, and less frequent later.</p>]]></content:encoded>
    </item>
  </channel>
</rss>
