AMP Configuration Variables
Available Chartbeat configurations to be passed into your AMP implementation code.
Last updated
Was this helpful?
Was this helpful?
<amp-analytics type="chartbeat">
<script type="application/json">
{
"vars": {
"uid": "12345",
"domain": "yoursite.com",
"sections": "News,Sports",
"authors": "John Doe,Jane Doe"
}
}
</script>
</amp-analytics><amp-analytics type="chartbeat">
<script type="application/json">
{
"vars": {
"uid": "12345",
"domain": "yoursite.com",
"sections": "News",
"authors": "John Doe",
"canonicalPath": "yoursite.com/article-xyz.html",
"title": "My Article Title",
"contentType": "article page"
}
}
</script>
</amp-analytics><amp-analytics type="chartbeat">
<script type="application/json">
{
“requests”: {“host”: “https://pong.chartbeat.net”},
"vars": {
"uid": "12345",
"domain": "yoursite.com",
"sections": "section 1,section 2",
"authors": "John Doe"
}
}
</script>
</amp-analytics>