diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-05 13:13:21 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-05 13:13:21 +0400 |
commit | e89de039de65e9bc8c92b738fd73ed3cf3fac371 (patch) | |
tree | 370ad70cb9ee955d3c973ac2a28945c6b3e3da61 /misc/internal-docs | |
parent | 84bab048142e684e1fdcbb1e838d44234951680c (diff) |
recommend to not track interactions automatically on internal links if website is a single page application
Diffstat (limited to 'misc/internal-docs')
-rw-r--r-- | misc/internal-docs/content-tracking.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/internal-docs/content-tracking.md b/misc/internal-docs/content-tracking.md index 07f81ca6f9..92ab8b3c23 100644 --- a/misc/internal-docs/content-tracking.md +++ b/misc/internal-docs/content-tracking.md @@ -223,7 +223,7 @@ As the target element has a `href` attribute we can detect the content target au ### How do we track an interaction automatically? -Interactions can be detected declarative in case the detected target element is an `a` element with an `href` attribute. If not, you will have to track +Interactions can be detected declarative in case the detected target element is an `a` and `area` element with an `href` attribute. If not, you will have to track the interaction programmatically, see one of the next sections. We generally treat links to the same page differently than downloads or outlinks. #### Links to the same domain @@ -241,8 +241,6 @@ Outlinks and downloads are handled as before. If a user clicks on a download or #### Anchor links They are not tracked currently. Will be tracked as an event in V2? -TODO we need to implement tracking of non `a` links, of anchor links and `a` links not having `href` attribute using XHR and events - ### How to prevent the automatic tracking of an interaction? Maybe you do not want us to track any interaction automatically as explained before. @@ -257,6 +255,8 @@ Examples In all examples we would track the impression automatically but not the interaction. +Note: In single page application you will most likely always have to disable automatic tracking of an interaction as otherwise a page reload and a redirect will happen. + ### Putting it all together A few Examples: |