Skip to main content

What is a clickTag, and how do I install it?

The clickTag is a technique used to open the advertiser's landing page in a new browser tab when a banner is clicked. The clickTag also allows the third-party ad servers used by the publisher to provide the URL of their own click tracking mechanism, which will be called between banner click and landing page opening.

How to install a clickTag

It can be done in two ways:

  • Add the following script into the <head> tag of the HTML file:
    ​
    ​<script src="https://cdn-prod.match2one.com/m2o_click_tag.js"></script>
    ​
    It will add a transparent <div> tag above your banner. This tag is aware of the clickTag and will open the landing page passed to it when the banner is clicked.

  • Add your own implementation that adds a DOMContentLoaded event listener, extracts the clickTag query parameter value, and sets it to the area responsible for clicking.

How to test a clickTag

1. After the clickTag installation described above, save changes in the HTML file for your banner.

2. Open index.html (your own *.html) file in a preferred web browser.

3. Add the following text: ?clickTag=http://match2one.com at the end of the URL in the address bar and press Enter.

4. Click on the ad. A new window with match2one.com website should be opened in your browser. 

5. You are good to go!

Did this answer your question?