Skip to content

Instantly share code, notes, and snippets.

@pierrehenri220
Created April 5, 2020 11:29
Show Gist options
  • Save pierrehenri220/0fb267ae8728a08986750f462da3c551 to your computer and use it in GitHub Desktop.
Save pierrehenri220/0fb267ae8728a08986750f462da3c551 to your computer and use it in GitHub Desktop.
ClickFunnels Tunnels to CSV generator
var csv = [];
$( '.sortingGroups .groupForFunnel' ).each(function() {
csv.push( $( this ).find( '.title' ).html() + "\n");
$( this ).find( '.groupFunnels .pageListingItem' ).each(function() {
csv.push( [
$( this ).find( '.pageListingTitle a' ).html(),
$( this ).find( '.pageListingTitle a' ).attr( 'href '),
$( this ).find( '.funnelStatSmall' ).text()
].join( "\t" ) + "\n" );
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment