Skip to content

constantx/punch-snippet-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

* deprecated, will be merged with constantx/punch-thirdparty-snippets-helper


google analytics

This is different from the google analytics snippet from the punch default third party snippet helper in that it use the new analytics.js rather than the ga.js.

Open your Punch project's configurations (config.json) and add the helpers:

  {
    "plugins": {
      "helpers": {
        "punch-snippet-helpers": "punch-snippet-helpers"
      }
    }
  }

You must then define the configurations for the snippets you wish to use as follows: (You'll need to include both the property_id and domain)

  {
    "thirdparty_snippets": {
      "ga": {
        "property_id": "UA-XXXXXX-X",
        "domain": "google.com"
      }
    }
  }

typekit

  {
    "thirdparty_snippets": {
      "typekit": {
        "id": "UA-XXXXXX-X"
      }
    }
  }

License

Copyright (c) 2012 Licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published