Skip to content

Instantly share code, notes, and snippets.

View CGeohagan's full-sized avatar

Colleen Geohagan CGeohagan

View GitHub Profile
@CGeohagan
CGeohagan / google_analytics.js
Created October 11, 2023 16:18
GA4 Implementation
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',
@CGeohagan
CGeohagan / ConcertAds.js
Last active August 1, 2024 17:19
Concert Ads on Ringer
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.",
);
@CGeohagan
CGeohagan / ConcertConductorPopsugar.html
Last active March 17, 2025 17:28
Conductor on HyphenSocial Popsugar
<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;
@CGeohagan
CGeohagan / ConcertConductorStrategist.html
Created March 17, 2025 17:28
Conductor on HyphenSocial Strategist
<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;