Skip to content

Commit

Permalink
reddit pixel integration update
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrpo committed Jul 20, 2021
1 parent e9994ab commit 33813c1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/RedditPixel/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import logger from "../../utils/logUtil";
class RedditPixel {
constructor(config) {
this.advertiserId = config.advertiserId;
this.name = "REDDITPIXEL";
this.name = "REDDIT_PIXEL";
}

init() {
Expand Down
1 change: 1 addition & 0 deletions integrations/client_server_name.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const clientToServerNames = {
BINGADS: "BingAds",
PINTEREST_TAG: "PinterestTag",
LINKEDIN_INSIGHT_TAG: "LinkedInInsightTag",
REDDIT_PIXEL: "Reddit Pixel",
HEAP: "Heap.io",
};

Expand Down
2 changes: 2 additions & 0 deletions integrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import * as BingAds from "./BingAds";
import * as PinterestTag from "./PinterestTag";
import * as AdobeAnalytics from "./AdobeAnalytics";
import * as LinkedInInsightTag from "./LinkedInInsightTag";
import * as RedditPixel from "./RedditPixel";
import * as Heap from "./Heap";

// the key names should match the destination.name value to keep partity everywhere
Expand Down Expand Up @@ -68,6 +69,7 @@ const integrations = {
PINTEREST_TAG: PinterestTag.default,
ADOBE_ANALYTICS: AdobeAnalytics.default,
LINKEDIN_INSIGHT_TAG: LinkedInInsightTag.default,
REDDIT_PIXEL: RedditPixel.default,
HEAP: Heap.default,
};

Expand Down
10 changes: 10 additions & 0 deletions integrations/integration_cname.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// for sdk side native integration identification

import RedditPixel from "./RedditPixel";

// add a mapping from common names to index.js exported key names as identified by Rudder
const commonNames = {
All: "All",
Expand Down Expand Up @@ -82,6 +85,13 @@ const commonNames = {
LinkedInInsightTag: "LINKEDIN_INSIGHT_TAG",
Linkedininsighttag: "LINKEDIN_INSIGHT_TAG",
LINKEDININSIGHTTAG: "LINKEDIN_INSIGHT_TAG",
Reddit_Pixel: "REDDIT_PIXEL",
RedditPixel: "REDDIT_PIXEL",
REDDITPIXEL: "REDDIT_PIXEL",
redditpixel: "REDDIT_PIXEL",
"Reddit Pixel": "REDDIT_PIXEL",
"REDDIT PIXEL": "REDDIT_PIXEL",
"reddit pixel": "REDDIT_PIXEL",
Heap: "HEAP",
heap: "HEAP",
"Heap.io": "HEAP",
Expand Down

0 comments on commit 33813c1

Please sign in to comment.