{"id":500,"date":"2020-08-05T15:08:56","date_gmt":"2020-08-05T15:08:56","guid":{"rendered":"https:\/\/wearesmile.com\/help\/?post_type=ht_kb&#038;p=500"},"modified":"2021-02-23T13:00:21","modified_gmt":"2021-02-23T13:00:21","slug":"add-the-hijack-javascript-snippet-to-your-website","status":"publish","type":"ht_kb","link":"https:\/\/wearesmile.com\/help\/documentation\/add-the-hijack-javascript-snippet-to-your-website\/","title":{"rendered":"Add the Hijack javascript snippet to your website"},"content":{"rendered":"\n<p>In order for Hijack to be able to target your website using an&nbsp;<a href=\"https:\/\/wearesmile.com\/help\/documentation\/adding-active-urls\/\">Active URL<\/a>, you need to add a javascript snippet to your website.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Log into your instance of Hijack<\/li><li>On the dashboard, look for the \u201cYour embed code\u201d panel, and copy the script tag shown.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hijack.wearesmile.com\/documentation\/wp-content\/uploads\/sites\/113\/2020\/05\/Screenshot-2020-05-12-at-18.32.25-1024x200.png\" alt=\"\" class=\"wp-image-183\"\/><\/figure>\n\n\n\n<p>You should add this to your website, inside the&nbsp;<code>&lt;body&gt;<\/code>&nbsp;tag. Ideally, it should be the last item before&nbsp;<code>&lt;\/body&gt;<\/code>. It is unique to your instance of Hijack, so please do not copy the examples on this page.<\/p>\n\n\n\n<p>It can be added using Google Tag Manager, this is the recommended way to add Hijack to your site.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Log into Google Tag Manager and navigate to your container attached to your main website.<\/li><li>Create a new Tag, using the Custom HTML option and paste in the embed code.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hijack.wearesmile.com\/documentation\/wp-content\/uploads\/sites\/113\/2020\/05\/Screenshot-2020-05-12-at-18.39.42-1024x640.png\" alt=\"\" class=\"wp-image-185\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li>Set the Tag to trigger using the \u201cAll Pages\u201d preset.<\/li><li>Save and publish the container.<\/li><li>Hijack is now available for you to assign Active URLs to!<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In order for Hijack to be able to target your website using an&nbsp;Active URL, you need to add a javascript snippet to your website. Log into your instance of Hijack On the dashboard, look for the \u201cYour embed code\u201d panel, and copy the script tag shown. You should add this&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_searchwp_excluded":"","footnotes":""},"ht-kb-category":[90],"ht-kb-tag":[],"class_list":["post-500","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hijack"],"_links":{"self":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":2,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/500\/revisions"}],"predecessor-version":[{"id":964,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/500\/revisions\/964"}],"wp:attachment":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb-category?post=500"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}