Skip to content

Implement audio teaser view tracking in n-tracking #21

@magsallen

Description

@magsallen

Implement audio teaser view tracking in n-tracking as it's required by several FT applications.

This code is currently required in the search page, the article page and the stream page. As the audio team is currently winding down, it makes sense to centralise this code so that the tracking events being sent by each application remain consistent without the active oversight of a team.

Example implementation from https://github.com/Financial-Times/next-search-page/pull/264

oTracking.view.init({
	selector: '.o-teaser--audio',
	getContextData: (el) => {
		return {
			componentContentId: el.getAttribute('data-id'),
			component: 'teaser',
			type: 'audio',
			subtype: 'podcast'
		};
	}
});```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions