Liking cljdoc? Tell your friends :D

de.baggerbagger.matomo-cljs.content


track-all-content-impressions!cljs

(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.
raw docstring

track-content-impression!cljs

(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").
raw docstring

track-content-impressions-within-node!cljs

(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.
raw docstring

track-content-interaction!cljs

(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!.
raw docstring

track-content-interaction-node!cljs

(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").
raw docstring

track-visible-content-impressions!cljs

(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).
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close