We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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; };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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;
};
The text was updated successfully, but these errors were encountered: