All Collections
Building Links
Building Links Programatically
How to make the JavaScript snippet ignore certain links
How to make the JavaScript snippet ignore certain links

There are circumstances where you wouldn't want a link to get globalized. Here's how to do that:

Matt Mustarde avatar
Written by Matt Mustarde
Updated over a week ago

If there are certain Amazon or iTunes links on your page that you do not want the JavaScript snippet to automatically globalize for you, (such as links that go to Amazon Support pages, or marketplace specific promotions) you can set the snippet to avoid globalizing them by editing the HTML.

When adding links to your page, simply go to the HTML and add " georiot-ignore="true" to the href code for the links.

For example, if you have a link on your site linking to the Amazon Associate Operating Agreement, the HTML for that link will look something like this:

<a href="https://affiliate-program.amazon.com/gp/associates/agreement/" target="">Amazon Associate Operating Agreement</a>

To have the Geniuslink JavaScript snippet automatically ignore that link, add georiot-ignore="true" before the href paramter:

<a georiot-ignore="true" href="https://affiliate-program.amazon.com/gp/associates/agreement/" target="">Amazon Associate Operating Agreement</a>

And that's it! The snippet will automatically ignore all links with that parameter added.

Did this answer your question?