Skip to content

Commit

Permalink
Add Brevo (fka Sendinblue)
Browse files Browse the repository at this point in the history
Closes #171
  • Loading branch information
MisterPhilip committed Oct 8, 2023
1 parent e7ba69e commit a38aa25
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
Binary file added src/assets/images/icons/BREVO16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/styles/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $icons: (
"AT Internet": $iconPath + "ATINTERNET16x16.png",
"Bing Ads": $iconPath + "BINGADS16x16.png",
"Braze": $iconPath + "BRAZE16x16.png",
"Brevo": $iconPath + "BREVO16x16.png",
"Comscore": $iconPath + "COMSCORE16x16.png",
"Crazy Egg": $iconPath + "CRAZYEGG16x16.png",
"Criteo OneTag": $iconPath + "CRITEOONETAG16x16.png",
Expand Down
60 changes: 60 additions & 0 deletions src/providers/Brevo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* Brevo (f/k/a Sendinblue)
* https://developers.brevo.com/docs/gettings-started-with-sendinblue-tracker
*
* @class
* @extends BaseProvider
*/
class BrevoProvider extends BaseProvider {
constructor() {
super();
this._key = "BREVO";
this._pattern = /in-automate\.brevo\.com\/p/;
this._name = "Brevo";
this._type = "marketing";
}

/**
* Retrieve the column mappings for default columns (account, event type)
*
* @return {{}}
*/
get columnMapping() {
return {
"account": "key",
"requestType": "sib_type"
};
}

/**
* Retrieve the group names & order
*
* @returns {*[]}
*/
get groups() {
return [
{
"key": "general",
"name": "General"
}
];
}

/**
* Get all of the available URL parameter keys
*
* @returns {{}}
*/
get keys() {
return {
"key": {
"name": "Tracking ID",
"group": "general"
},
"sib_type": {
"name": "Request Type",
"group": "general"
}
};
}
}

0 comments on commit a38aa25

Please sign in to comment.