Problem
Some On-site Messaging (OSM) campaigns experienced issues tracking clicks, even though:
- The OSMs were successfully clicked.
- The redirection worked as expected.
Instructions
To ensure proper click tracking in OSM campaigns, you must explicitly enter click tracking when redirection URLs are embedded in the text. Perform the following steps:
- Edit the campaign.
- Go to the content section and click the text that contains the link.
- Click Settings and select Styling.
- Switch from Basic to Advanced.
- Add the provided line
onclick:"MoeOsm.trackClick('Widget ID');MoeOsm.dismissMessage();"
to the Custom Attributes section and replace the Widget ID with the widget ID value (such as 1, 2, and 3). - Save the campaign and publish it.
info |
Information
|