- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
You'd put something along the following lines in the body of the article:
<figure class="op-tracker"> <iframe>
<script type="text/javascript">
var utag_data = {
/* Data layer here */
};
</script>
<script src="//tags.tiqcdn.com/utag/account/profile/environment/utag.js"></script> </iframe> </figure>
There's some vendor-agnostic documentation here.
Placing the <script> tag directly in the iframe probably won't work and is contrary to facebook's directions. You will have to load an HTML page from your webserver or provide HTML code for the iframe with the javascript in that HTML code.
Excerpt from facebook's instructions:
Add your analytics code in one of the following methods:
Specify the URL pointing to the source for your analytics code.
Embed the full unescaped HTML and scripts as content within the <iframe> element representing this analytics code.
Please refer to https://developers.facebook.com/docs/instant-articles/analytics and https://developers.facebook.com/docs/instant-articles/reference/analytics
Copyright All Rights Reserved © 2008-2023