Thousands of writers, editors, site managers, and technologists use Parse.ly to understand what content draws in website visitors, and why. Using our powerful dashboards and APIs, customers build successful digital strategies that allow them to grow and engage a loyal audience.
Industry leaders -- like Mashable, Slate, News Corp, and Conde Nast -- partner with Parse.ly to bring clarity to content, audience, and analytics.
The first part of the two step integration with Parse.ly tracking, is the installation of the tracking code. Jump to documentation about the metadata tag once you have the JavaScript running!
<!-- START Parse.ly Include: Standard --> <div id="parsely-root" style="display: none"> <span id="parsely-cfg" data-parsely-site="##########"></span> </div> <script> (function(s, p, d) { var h=d.location.protocol, i=p+"-"+s, e=d.getElementById(i), r=d.getElementById(p+"-root"), u=h==="https:"?"d1z2jf7jlzjs58.cloudfront.net" :"static."+p+".com"; if (e) return; e = d.createElement(s); e.id = i; e.async = true; e.src = h+"//"+u+"/p.js"; r.appendChild(e); })("script", "parsely", document); </script> <!-- END Parse.ly Include: Standard -->
The Metadata tag
The
json-ld script tag is used to reliably identify information about the page, like the author, publishing date, title, and the section it belongs to. Add the tag to the <head> element of the tracked pages. The content parameter should be a JavaScript dictionary serialized to JSON.<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "NewsArticle", "headline": "Zipf's Law of the Internet: Explaining Online Behavior", "url": "http://blog.parsely.com/post/57821746552", "thumbnailUrl": "http://blog.parsely.com/inline_mra670hTvL1qz4rgp.png", "dateCreated": "2013-08-15T13:00:00Z", "articleSection": "Programming", "creator": ["Alan Alexander Milne"], "keywords": ["statistics","zipf","internet","behavior"] } </script>
References
- Basic Implementation
http://www.parsely.com/help/integration/basic/ - The Metadata tag
http://www.parsely.com/help/integration/jsonld/
No hay comentarios:
Publicar un comentario