Jump to content

Registering External Javascript


TRich

Recommended Posts

Do you use the same JavaScript registration format for using externally hosted paths?

Specifically, since I'm using https://app.termly.io/embed-policy.min.js, do I still use path, or something else? Also, I'm not sure about the ID field, because its externally hosted. Here is the JavaScript snippet I've been given to work with. It has a USER ID, and I'm wondering if I should use this for the ID field?

<!-- Termly Tracking Code --> <div name="termly-embed" data-id="e0ddfc2a-7d40-4f3c-a7d7-e2e904b34638" data-type="iframe"></div> <script type="text/javascript">(function(d, s, id) { var js, tjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://app.termly.io/embed-policy.min.js"; tjs.parentNode.insertBefore(js, tjs); }(document, 'script', 'termly-jssdk'));</script>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...