enableHeartBeatTimer( activeTimeInseconds ) - Install a Heart beat timer that will send additional requests to Matomo in order to better measure the time spent in the visit.If sent after the standard visit length, ping requests will be ignored. If they are sent within the standard visit length, they will update the existing visit time. This is useful to debug / test content tracking. logAllContentBlocksOnPage() - Log all found content blocks within a page to the console.trackContentInteraction( contentInteraction, contentName, contentPiece, contentTarget ) - Track a content interaction using the specified values.trackContentImpression( contentName, contentPiece, contentTarget ) - Track a content impression using the specified values.trackContentInteractionNode( domNode, contentInteraction ) - Track an interaction with the given DOM node / content block.trackContentImpressionsWithinNode( domNode ) - Scan the given DOM node and its children for content blocks and tracks an impression for them if no impression was already tracked for it.It tracks an impression only if a content block is actually visible. trackVisibleContentImpressions ( checkOnScroll, timeIntervalInMs ) - Scan the entire DOM for all content blocks as soon as the page is loaded.trackAllContentImpressions() - Scan the entire DOM for all content blocks and tracks all impressions once the DOM ready event has been triggered.linkType can either be 'link' for an outlink or 'download' for a download. url is the full URL which is to be tracked as a click. trackLink( url, linkType ) - Log a click from your own code.trackGoal( idGoal, ) - Log a conversion for the numeric goal ID, with an optional numeric custom revenue customRevenue.trackSiteSearch(keyword,, ) - Log an internal site search for a specific keyword, in an optional category, specifying the optional count of search results in the page.trackEvent(category, action,, ) - Log an event with an event category (Videos, Music, Games.), an event action (Play, Pause, Duration, Add Playlist, Downloaded, Clicked.), and an optional event name and optional numeric value.Matomo.getAsyncTracker( optionalMatomoUrl, optionalMatomoSiteId ) - Get the internal instance of the Tracker used for asynchronous tracking.Matomo.getTracker( trackerUrl, siteId ) - Get a new instance of the Tracker.List of all Methods Available in the Tracking API Requesting the Tracker Instance from the Matomo (formerly Piwik) Class Read also the JavaScript Tracking Client user guide to get familiar with the JavaScript tracking client.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |