From 3c2b0814e9cfe2ac81d3ec4b79b1a197d8e413cb Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Thu, 20 Oct 2016 16:29:40 -0700 Subject: [PATCH] Fix typo and spacing --- extensions/amp-analytics/analytics-vars.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/amp-analytics/analytics-vars.md b/extensions/amp-analytics/analytics-vars.md index 38f47eb370c4..ec25be55ba79 100644 --- a/extensions/amp-analytics/analytics-vars.md +++ b/extensions/amp-analytics/analytics-vars.md @@ -1,10 +1,10 @@ # Variables supported in `amp-analytics` -Use the format `${varName}` in a request string for a page or platform-defined variable. `amp-analytics` tag will replace the template with its actual value at the time of construction of the analytics request. +Use the format `${varName}` in a request string for a page or platform-defined variable. The `amp-analytics` tag will replace the template with its actual value at the time of construction of the analytics request. Since the request that is constructed is sent over HTTP, the request needs to be encoded. To achieve this, the `var` values are url-encoded using [`encodeUrlComponent`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) before being inserted into the request. -##Variable definitions +## Variable definitions Vars can be defined by the platform, in the config at the top level, inside the triggers or in a remote config, as shown in this example. ```html @@ -32,7 +32,7 @@ Vars can be defined by the platform, in the config at the top level, inside the ``` -##Variables as data attribute +## Variables as data attribute For the following event types, variables can be passed as part of the element level data attribute * visible