Skip to main content

Premium.clicktag

This component handles the click-out functionality. By default, clicking anywhere on the creative will open the default landing page or click tracker.

Premium.clicktag.getVars()

Returns the jp_creative_vars object from the top window.

Premium.clicktag.overrideLandingPage

If set, it will override the landing page in the hosting tag.

// set landing page
Premium.clicktag.overrideLandingPage = 'https://justpremium.com/';

// set back to default
Premium.clicktag.overrideLandingPage = undefined;

jp-noClick

Prevents the element from clicking-out to the landing page URL. This attribute will not affect the element's children.

<!-- This element will not click-out -->
<p class="class-name" jp-noClick>Some text</p>

jp-url

Makes the element link to a different URL. This attribute will not affect the element's children.

<!-- This element will click-out to google.com -->
<p class="class-name" jp-url="https://www.google.com">Some text</p>
caution

To ensure accurate tracking and reporting, please do not use <a href=""> or any other method for opening links.