Skip to content

Commit

Permalink
change intg dest name
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jun 23, 2021
1 parent 9dd7adc commit 621fe59
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import logger from "../../utils/logUtil";
import ScriptLoader from "../ScriptLoader";
class LinkedInPixel{
class LinkedInInsightTag{
constructor(config){
this.name="LINKEDIN_PIXEL";
this.name="LINKEDIN_INSIGHT_TAG";
this.partnerId=config.partnerId;
}
init() {
logger.debug("===in init LinkedIn Pixel===");
logger.debug("===in init LinkedIn Insight Tag===");
ScriptLoader(
"LinkedIn Pixel",
"LinkedIn Insight Tag",
'https://snap.licdn.com/li.lms-analytics/insight.min.js'
);
if (!this.partnerId) return;
window._linkedin_data_partner_id = this.partnerId;
}
isLoaded() {
logger.debug("=== in isLoaded LinkedIn Pixel===");
logger.debug("=== in isLoaded LinkedIn Insight Tag===");
return !!window._linkedin_data_partner_id;
}
isReady() {
logger.debug("=== in isReady LinkedIn Pixel===")
logger.debug("=== in isReady LinkedIn Insight Tag===")
return !!window._linkedin_data_partner_id;
}
}
export default LinkedInPixel;
export default LinkedInInsightTag;
3 changes: 3 additions & 0 deletions integrations/LinkedInInsightTag/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import LinkedInInsightTag from "./browser";

export default LinkedInInsightTag;
3 changes: 0 additions & 3 deletions integrations/LinkedInPixel/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion integrations/client_server_name.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const clientToServerNames = {
CLEVERTAP: "Clevertap",
BINGADS: "BingAds",
PINTEREST_TAG: "PinterestTag",
LINKEDIN_PIXEL: "LinkedinPixel"
LINKEDIN_INSIGHT_TAG: "LinkedInInsightTag"
};

export { clientToServerNames };
4 changes: 2 additions & 2 deletions integrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import * as Clevertap from "./Clevertap";
import * as BingAds from "./BingAds";
import * as PinterestTag from "./PinterestTag";
import * as AdobeAnalytics from "./AdobeAnalytics";
import * as LinkedInPixel from "./LinkedInPixel";
import * as LinkedInInsightTag from "./LinkedInInsightTag";

// the key names should match the destination.name value to keep partity everywhere
// (config-plan name, native destination.name , exported integration name(this one below))
Expand Down Expand Up @@ -66,7 +66,7 @@ const integrations = {
BINGADS: BingAds.default,
PINTEREST_TAG: PinterestTag.default,
ADOBE_ANALYTICS: AdobeAnalytics.default,
LINKEDIN_PIXEL: LinkedInPixel.default,
LINKEDIN_INSIGHT_TAG: LinkedInInsightTag.default,
};

export { integrations };
15 changes: 8 additions & 7 deletions integrations/integration_cname.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@ const commonNames = {
ADOBE_ANALYTICS: "ADOBE_ANALYTICS",
AdobeAnalytics: "ADOBE_ANALYTICS",
adobeanalytics: "ADOBE_ANALYTICS",
"LinkedIn Pixel": "LINKEDIN_PIXEL",
LINKEDIN_PIXEL: "LINKEDIN_PIXEL",
Linkedin_pixel: "LINKEDIN_PIXEL",
LinkedinPixel: "LINKEDIN_PIXEL",
LinkedInPixel: "LINKEDIN_PIXEL",
Linkedinpixel: "LINKEDIN_PIXEL",
LINKEDINPIXEL: "LINKEDIN_PIXEL",
"LinkedIn Insight Tag": "LINKEDIN_INSIGHT_TAG",
LINKEDIN_INSIGHT_TAG: "LINKEDIN_INSIGHT_TAG",
Linkedin_insight_tag: "LINKEDIN_INSIGHT_TAG",
LinkedinInsighttag: "LINKEDIN_INSIGHT_TAG",
LinkedinInsightTag: "LINKEDIN_INSIGHT_TAG",
LinkedInInsightTag: "LINKEDIN_INSIGHT_TAG",
Linkedininsighttag: "LINKEDIN_INSIGHT_TAG",
LINKEDININSIGHTTAG: "LINKEDIN_INSIGHT_TAG",
};

export { commonNames };

0 comments on commit 621fe59

Please sign in to comment.