Once our JavaScript tracking snippet is successfully installed, then JavaScript tag snippets can be used within a web page (or a landing page) to add or remove tags against a contact within your Pathfinder account.

In order to set a tag, the body of HTML source code of the page should be appended with the following script:

<!-- SET TAG -->
<script type="text/javascript">
    var _csq = _csq || [];
    _csq.push(['_addTag', 'TAG_UNIQUE_REFERENCE_ID']);
</script>

Similarly, removal of tags can be done using the same method with a modified script:

<!-- REMOVE TAG -->
<script type="text/javascript">
    var _csq = _csq || [];
    _csq.push(['_removeTag', 'TAG_UNIQUE_REFERENCE_ID']);
</script>

You can get a specific tag’s JavaScript tag snippet by logging into Pathfinder and going to Contacts, Tags, selecting a tag and then choosing the JS Triggers tab.

It is important to note that scripts must be inserted within the body of the HTML code.

Did this answer your question?