Facebook Instant Articles

Bronze Contributor
Bronze Contributor

Hello,

we have already being using Tealium for several years. Could you please provide a guidelines how to use Tealium in Facebook Instant Articles. 

Thanks,

Arkady Pildes

3 REPLIES 3

Facebook Instant Articles

Tealium Expert
Tealium Expert

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.

 

Facebook Instant Articles

Employee Emeritus

Hello @Arkady. Thank you for the suggestion. Let me add this to the documentation queue.

 

@UnknownJ Thank you for the reply. Much appreciated! :-)

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.

Facebook Instant Articles

Tealium Employee

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

Public