Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Content Tracking #7

Closed
tsteur opened this issue Sep 23, 2014 · 0 comments
Closed

Support Content Tracking #7

tsteur opened this issue Sep 23, 2014 · 0 comments
Assignees

Comments

@tsteur
Copy link
Member

tsteur commented Sep 23, 2014

This will be a new feature in Piwik 2.7.0 see matomo-org/matomo#4996 .

In PHP Tracker there are two new methods see https://github.com/piwik/piwik/blob/master/libs/PiwikTracker/PiwikTracker.php#L556-L583

doTrackContentImpression($contentName, $contentPiece = 'Unknown', $contentTarget = false)

It maps to the three parameters c_n, c_p and c_t see https://github.com/piwik/piwik/blob/master/libs/PiwikTracker/PiwikTracker.php#L894-L911

and

doTrackContentInteraction($interaction, $contentName, $contentPiece = 'Unknown', $contentTarget = false)

Which sends to the four parameters c_i, c_n, c_p and c_t see https://github.com/piwik/piwik/blob/master/libs/PiwikTracker/PiwikTracker.php#L914-L948

Content piece (c_p) and target (c_t) are both optional and should be only sent if a value is set. Content piece defaults to "Unknown" in the PHP implementation but a user could pass the boolean value false to not send any value or content piece.

Do you need more information?

@dotsbb dotsbb self-assigned this Sep 24, 2014
dotsbb added a commit that referenced this issue Sep 24, 2014
@dotsbb dotsbb closed this as completed Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants