GitHub Updates

I was chatting with someone recently and they mentioned running into an issue with Dropbox that essentially burnt it to the ground.

As someone who’s put easily hundreds of hours into a ‘Code Projects’ Dropbox folder, I figured it was time to back things up somewhere else and possibly help a few more people out in the process. So I’ve created a host of GitHub repos to store some of the scripts and bits of tooling I use most often.

You can find them all here: https://github.com/jcksegal-ns

Most are missing READMEs, though that’ll change with time. I’ll add some brief summaries of each repository here for the time being.

Chili Piper Form Handlers

https://github.com/jcksegal-ns/custom-chilipiper-form-handlers

This repository contains HTML scripts for adding Chili Piper routers to Marketo and HubSpot forms. They’re intended to be deployed as Custom HTML tags within Google Tag Manager, though they could certainly be reworked to perform differently.

For bonus points, each script also triggers data layer events that you can use to construct custom events within GTM.

Future Refinements

Marketo Custom Form Handlers

https://github.com/jcksegal-ns/marketo-custom-form-handlers

This is a collection of scripts I use to augment Marketo form functionality. Most of what’s in here is my own spin on existing code, so this should be viewed as a collection of things other people wrote more than something I’ve wholly created myself. I’ve made my own tweaks, but still.

Here’s what in it:

  • Block Personal Emails
  • Clear Marketo Munchkin Cookie Pre-Submission
  • Control Thank-You Page Destination
  • Replace Form with Thank You Message

Future Refinements

More than I can list…

  • All of this code needs to be rewritten and cleaned up
  • Console.log() calls should be removed throughout
  • Comments are missing
  • Consider swapping over to Sanford Whiteman’s doOrQueue event listener setup; it’s a better method for managing dependencies, especially for tag manager deployments
  • Adopt a do not touch below this line pattern

Marketo Segment Tracking

https://github.com/jcksegal-ns/marketo-segment-tracking/tree/main

This script modifies a Marketo form submission to send a track() and identify() call to Segment at time of submission.

Future Refinements

  • Confirm this aligns to the latest version of Segment’s tracking script
  • Add a HubSpot version
  • Consider genericizing this into ‘CDP tracking for Marketo and HubSpot’
    • I’ve got a PostHog tracking script I could add too
  • Adopt a do not touch below this line pattern

https://github.com/jcksegal-ns/utm-cookie-map

Poorly named, this repository is for scripts that save UTM values to a cookie then passing them to hidden fields on Marketo or HubSpot forms.

I’ve set the cookies to expire at the end of the session by default, but they could certainly be extended to last for longer.

Both versions of this code also use Sanford Whiteman’s doOrQueue event listener setup, which works nicely in most instances.

Future Refinements

  • The HubSpot version doesn’t play nicely with <iframe> forms
  • Better error handling throughout
  • Remove console.log() calls throughout
  • More consistent comments
  • Adopt a do not touch below this line pattern

Data Models

https://github.com/jcksegal-ns/data-models

SQL scripts for working with Salesforce and Marketo data. These are fairly plug-and-play if you have access to a data warehouse and primarily use default fields (and you’ll likely have a pretty easy time telling when they don’t). If you want copy-and-paste marketing funnel modeling, here ya go!

  • Marketo Lead Activities
    • Email
    • Emails Sent
    • Emails Delivered
    • Emails Opened
    • Links Clicked in Emails
    • Forms Filled
  • Salesforce Campaigns to Opportunities
    • campaign_name
    • campaign_type
    • campaign_budget
    • campaign_start_data
    • member_first_associated
    • person_email
    • person_id
    • person_created_date
    • person_mql_date
    • person_mql_category
    • person_status
    • person_original_source
    • person_title
    • opportunity_influence_type
    • opportunity_id
    • opportunity_name
    • opportunity_created_date
    • opportunity_close_date
    • opportunity_lead_source
    • opportunity_stage
    • opportunity_amount
  • Salesforce Contacts to Opportunities
    • email
    • contact_id
    • title
    • current_contact_status
    • mql_date
    • mql_category
    • account_id
    • account_name
    • number_of_employees
    • account_type
    • marketing_sourced
    • most_recent_opportunity_name
    • most_recent_opportunity_amount
    • most_recent_opportunity_created_date
    • most_recent_opportunity_current_stage
    • most_recent_opportunity_id
  • Salesforce People to Opportunities
    • person_email
    • person_id
    • person_created_date
    • person_mql_date
    • person_mql_category
    • person_status
    • person_original_source
    • person_title
    • opportunity_id
    • opportunity_name
    • opportunity_created_date
    • opportunity_close_date
    • opportunity_lead_source
    • opportunity_stage
    • opportunity_amount

Future Refinements

  • Comments!
  • Greater reliance on default fields!
  • Field labeling!
  • Adopt a do not touch below this line pattern

Written by Jack Segal. Shoot me an email with questions or comments, and if you'd like to support my writing, you can send me a tip using Stripe!



Date
2025-01-13



Subscribe

Fill out the form to get notified whenever a new post goes live!

Powered by Buttondown.



Comments