Welcome to our Help Center

Use of the Media HTML Code vs JavaScript Code for Tracking

When using Media from MyAffiliates, both HTML and JavaScript code can be used to display a banner. However, there is an important difference in how impressions are tracked.


JavaScript Code
The JavaScript code is recommended when displaying a banner on a website.
When the JavaScript code is used, MyAffiliates can track both:

  • Impressions: the number of times the banner is displayed.
  • Clicks: the number of times the banner is clicked.

HTML Code
The raw HTML code can be used when JavaScript cannot be used, such as in emails or other unusual scenarios.
When the HTML code is used, impressions are not tracked, as impression tracking requires the JavaScript version of the code.
However, clicks will still be tracked correctly.


Note: If impression tracking is required, affiliates should use the JavaScript code rather than the raw HTML code.
 

Was this article helpful?

Yes No

Thank you for your feedback!

×
Select company

You are related to multiple companies. Please select the company you wish to login as.