(track-all-content-impressions!)Scan the entire page and record an impression for every content block found.
Scan the entire page and record an impression for every content block found.
(track-content-impression! content-name content-piece content-target)Manually record a content impression. content-name: logical name of the content block. content-piece: the specific piece shown (e.g. image src or headline). content-target: the URL the content points to (or "Unknown").
Manually record a content impression. content-name: logical name of the content block. content-piece: the specific piece shown (e.g. image src or headline). content-target: the URL the content points to (or "Unknown").
(track-content-impressions-within-node! dom-node)Scan a DOM node and record impressions for all content blocks inside it. Useful after dynamically injecting content into the page.
Scan a DOM node and record impressions for all content blocks inside it. Useful after dynamically injecting content into the page.
(track-content-interaction! content-interaction
content-name
content-piece
content-target)Manually record a content interaction. content-interaction: interaction type (e.g. "click", "submit"). content-name, content-piece, content-target: same as track-content-impression!.
Manually record a content interaction. content-interaction: interaction type (e.g. "click", "submit"). content-name, content-piece, content-target: same as track-content-impression!.
(track-content-interaction-node! dom-node)(track-content-interaction-node! dom-node content-interaction)Record an interaction (e.g. a click) on a DOM node that has content tracking attributes. content-interaction: interaction type string (default "Unknown").
Record an interaction (e.g. a click) on a DOM node that has content tracking attributes. content-interaction: interaction type string (default "Unknown").
(track-visible-content-impressions!)(track-visible-content-impressions! check-on-scroll?)(track-visible-content-impressions! check-on-scroll? interval-ms)Record impressions only for content blocks currently visible in the viewport. check-on-scroll?: re-check as the user scrolls (default true). interval-ms: polling interval for visibility checks in ms (default 750).
Record impressions only for content blocks currently visible in the viewport. check-on-scroll?: re-check as the user scrolls (default true). interval-ms: polling interval for visibility checks in ms (default 750).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |