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

Consider Content impression and interaction request #8

Open
OphelieMicoine opened this issue Nov 7, 2024 · 0 comments
Open

Consider Content impression and interaction request #8

OphelieMicoine opened this issue Nov 7, 2024 · 0 comments

Comments

@OphelieMicoine
Copy link

Adding the content_impression and content_interaction events in generateEventName function by adding those to tests at the top :
const generateEventName = (requestData) => {
if (requestData.event_name) {
return requestData;
} else if (requestData.ping) {
requestData.event_name = 'ping';
} else if (requestData.c_i) {
requestData.event_name = 'content_interaction';
} else if (requestData.c_n) {
requestData.event_name = 'content_impression';

} else if (requestData.e_t) {
requestData.event_name = requestData.e_t;
} else if (requestData.e_c) {
requestData.event_name = requestData.e_c;
} else if (requestData.search) {
requestData.event_name = 'search';
} else if (requestData.link) {
requestData.event_name = 'click';
} else if (requestData.download) {
requestData.event_name = 'file_download';
} else if (requestData.idgoal) {
requestData.event_name = 'goal_conversion';
} else if (requestData.action_name) {
requestData.event_name = 'page_view';
} else {
requestData.event_name = DEFAULT_EVENT_NAME;
}
return requestData;
};

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

1 participant