This file contains hidden or 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
import VideoEvents from '@src/metrics/video_events'; | |
import logger from '@src/shared/logger'; | |
/** | |
* Custom Dimensions Map that is required for UA events with gtag | |
* This mapping is not required for GA4 | |
*/ | |
const concertCustomDimensionMap = { | |
'dimension1': 'video_id', | |
'dimension2': 'video_length', |
This file contains hidden or 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
import { useEffect } from "react"; | |
// Make sure this component is loaded on every page you want ads | |
function ConcertAds(props) { | |
useEffect(() => { | |
const install = () => { | |
if (window.concertAdsInstalled) { | |
console.log( | |
"We are not installing Concert Ads because it has already been installed.", | |
); |
This file contains hidden or 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
<script src='https://micro.rubiconproject.com/prebid/dynamic/7470.js' async></script> | |
<script src='https://c.aps.amazon-adsystem.com/apstag.js' async></script> | |
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> | |
<script src='https://cdn.concert.io/lib/concert-ads/v2-latest/concert_ads.js' async></script> | |
<script> | |
var CONCERT_ADS_CONFIG = 'https://concertads-configs.vox-cdn.com/hyphensocial/popsugar/config.json'; | |
var urlParams = new window.URLSearchParams(window.location.search); | |
var concertConfigUrlParam = urlParams.get('concert_config_url'); | |
var configUrl = concertConfigUrlParam ? concertConfigUrlParam : CONCERT_ADS_CONFIG; |
This file contains hidden or 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
<script src='https://micro.rubiconproject.com/prebid/dynamic/7470.js' async></script> | |
<script src='https://c.aps.amazon-adsystem.com/apstag.js' async></script> | |
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> | |
<script src='https://cdn.concert.io/lib/concert-ads/v2-latest/concert_ads.js' async></script> | |
<script> | |
var CONCERT_ADS_CONFIG = 'https://concertads-configs.vox-cdn.com/hyphensocial/strategist/config.json'; | |
var urlParams = new window.URLSearchParams(window.location.search); | |
var concertConfigUrlParam = urlParams.get('concert_config_url'); | |
var configUrl = concertConfigUrlParam ? concertConfigUrlParam : CONCERT_ADS_CONFIG; |