This feature must be enabled for you by Emarsys Support, and requires steps 1 and 2 of the Web Extend Data Collection Scripts to be implemented.
Further reading
As a quick reminder, here is the onboarding video about Managing Web Channel Campaigns:
Activating a campaign
You can instantly activate a new campaign you have just created by clicking Save and Activate in the Scheduling step of the campaign editor.
The time required for activating your campaign may occasionally increase significantly. Our developers are aware of the issue and are actively working to fix this.
It is recommended to test your Web Channel campaign after activation.
Be aware that currently, Test mode in the Content step of the Web Channel campaign creation flow provides you a preview function only.
Editing campaigns
You can edit a campaign at any time if its status is draft or ready, but you cannot edit a running campaign. If you need to edit a running campaign first you have to stop it.
Stopping a campaign
The time needed for stopping a campaign may temporarily increase significantly, even to as high as a few hours. Our developers are working to fix this.
Deleting campaigns
When you try to delete segments used in Web Channel campaigns or deactivate Web Channel campaigns used in Interactions programs, then a dialog appears and checks whether the selected asset is currently being used.
An asset is considered a Blocker if deleting it would prevent a campaign or program from running. You cannot delete Blockers unless you remove them from the campaign or program where they are being used.
To open the campaign or program where the asset is being used, click the Edit icon.
While you are working on other tabs to remove Blockers, the dialog displaying the blocking issues is automatically refreshed, so you can delete the ones where you resolved the blocking issues without reloading this dialog.
After resolving the blocking issues, you can delete the asset by clicking Delete.
Tracking Web Channel content events
You can track the content events of your Web Channel campaign by using Google Analytics. If your website has Google Analytics integrated, every Web Channel campaign type sends the following event structure automatically:
{
event_category: 'Webmessage',
event_action: type,
event_label: campaignId
};
Type can be:
-
loaded
: When a campaign is loaded for a user, but conditionally filtered out, for example, the targeted cart value has not been reached yet. -
impression
: When a campaign is shown on any part of the website. -
click
: When the user clicks on a campaign. -
cancel
: When a user closes a campaign after impression. Note: This is only applicable to closable campaigns. -
submit
: When a user submits a form.
If the event is neither a click
, nor a submit
, then the non-interaction
property is added to it.
You can disable the automatic event sending by adding the following JavaScript snippet to your website:
Important: When you add this snippet to your website, make sure that it runs before the scarab-v2.js file is loaded to avoid timing issues.
<script>
EMARSYS_GA_DISABLED=true
</script>
To add JavaScript lines to your Web Channel campaign use the HTML editor.
For the proper Google Analytics syntax, see Know Your Analytics Platform.
Adding custom Google Analytics events to Web Channel
You can add additional Google Analytics events to any blank Web Channel campaign in the HTML editor. If Google Analytics is loaded on your site, you only need to add a <script>
tag in the campaign with your event. Use the following script to trigger the event when the campaign is loaded on the site:
<script>
gtag('event', 'custom-ga4-event',{
event_category: 'Videos',
event_action: 'play',
event_label: 'Fall Campaign',
});
</script>
If you want to trigger an event when a specific action happens (e.g., a visitor clicks a button), include the Google Analytics command in a function and call it. In the following example, the Google Analytics command is called when the button is clicked:
<body>
<div>
<a data-wps-href="#" onClick=myFunction()>Send Google Analytics event</a>
</div>
<script>
function myFunction() {
gtag('event', 'custom-ga4-event',{
event_category: 'Videos',
event_action: 'play',
event_label: 'Fall Campaign',
});
}
</script>
</body>