-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
integrations/LinkedInPixel/browser.js → integrations/LinkedInInsightTag/browser.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import LinkedInInsightTag from "./browser"; | ||
|
||
export default LinkedInInsightTag; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters