### Initializing Google Analytics Tracking - JavaScript Source: https://github.com/pyblish/pyblish.github.io/blob/master/_includes/head.html This snippet initializes Google Analytics by loading the analytics.js script and configuring a tracker. It then sends a 'pageview' hit to record the user's visit. This is crucial for collecting website usage statistics. ```JavaScript (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r] ||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/ analytics.js','ga'); ga('create', 'UA-54795291-1', 'auto'); ga('send', 'pageview'); ``` -------------------------------- ### Artist and TD Workflow Diagram Source: https://github.com/pyblish/pyblish.github.io/blob/master/_chapters/1.home.md This diagram illustrates the distinct yet interconnected concerns of artists and technical directors within a content creation pipeline. It visually represents how Pyblish addresses their respective questions regarding content saving, formatting, and enforcement of standards. ```plaintext _________________________ _______________________________ / \ | / \ | - Where do I save it? | | | How do I get artists to.. | | - How do I format it? | | | - save in the proper place? | \___________________________\ | /_ - format appropriately? | o | o \______________________________/ /| | |\ / | | | \ Artist | TD ``` -------------------------------- ### Generating Navigation Menu - Liquid Source: https://github.com/pyblish/pyblish.github.io/blob/master/_includes/header.html This Liquid template snippet dynamically generates a navigation menu by iterating over `site.chapters`. It includes a conditional check to exclude chapters marked as 'draft', rendering a markdown-style link with the chapter's title and href for published chapters. ```Liquid {% for chapter in site.chapters %} {% if chapter.draft %}{% else %} [{{ chapter.title }}](#{{ chapter.href }}) {% endif %} {% endfor %} ``` -------------------------------- ### Adding Anchor Links to Headers using jQuery Source: https://github.com/pyblish/pyblish.github.io/blob/master/_layouts/default.html This JavaScript snippet, utilizing the jQuery library, iterates through all HTML header elements (h1 through h6) that possess an 'id' attribute. For each identified header, it dynamically wraps its existing text content with an anchor tag. This creates a clickable link that points to the header's own ID, thereby enabling direct, in-page navigation to specific sections. This functionality requires jQuery to be loaded on the page. ```JavaScript $('h1, h2, h3, h4, h5, h6').filter('[id]').each(function () { $(this).html('' + $(this).text() + ''); }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.