This module has the basic data pipeline to process the web events collected by the Lightning tracker.
You can easily install this module by running the following command:
npm i --save datacurrent_web_events
Then you will have to go to your /definitions folder and create the file "datacurrent_module_init.js" if it does not exist yet.
Within this file you will have to "require" the module.
const datacurrent_web_events = require('datacurrent_web_events');
datacurrent_web_events();
Finally, you will have to create the "web_event_processing.js" file within your includes folder.
Copy-paste the settings below and modify to your needs.
module.exports = {
"production": {
"source_data": {
"source_medium_harmonization": [{
"original_source": "google",
"original_medium": "cpc",
"cleaned_source": "google",
"cleaned_medium": "search_paid"
}],
"channel_mapping": [{
"medium": "search_paid",
"channel": "search",
"channel_type": "paid"
}]
}
},
"acceptance": {
"source_data": {
"source_medium_harmonization": [{
"original_source": "google",
"original_medium": "cpc",
"cleaned_source": "google",
"cleaned_medium": "search_paid"
}],
"channel_mapping": [{
"medium": "search_paid",
"channel": "search",
"channel_type": "paid"
}],
"social_sources": [
"facebook",
"tiktok"
],
"search_sources": [
"google",
"bing"
]
}
}
}