GithubHelp home page GithubHelp logo

chapelr / tw-analytics Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 290 KB

Quickly add Google analytics to Twine games (and other web apps) from the command line.

License: The Unlicense

JavaScript 0.65% HTML 99.35%
twine twine2 twee google-analytics

tw-analytics's People

Contributors

chapelr avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

tw-analytics's Issues

name may be misleading

tw-analytics may give people the impression this does something near with Twitter. Maybe a name like twine-ga instead to clarify it.

Newbie guide by Somnium

If you are a beginner Twine user and want a little extra help, here is a step-by-step of what you need to do to install TW-Analytics on your story.

For WINDOWS:

  1. This requires NodeJS go to this address and install it: https://nodejs.org/en/

  2. Wait for Node.js to finish installing. You will probably need to reboot your PC.

  3. Open the win command prompt (either search for "cmd" in the start menu or click WIN KEY + R and type "cmd" (without the quotations), press enter)

  4. The command prompt will open. Type npm i "-g tw-analytics" (without the quotations) and press enter.

  5. Now it's time to make your Google Analytics account. Go to https://analytics.google.com/ and make one. When you're done, take not of your analytics ID

  6. Now it's time to patch your story. We recommend making a new copy of it just in case. Let's say it's called "Story_copy.html"

  7. Go to the folder where Story_copy.html is located. Press ALT + D. You will go to the nav bar. Just type "cmd" and hit enter.

  8. The command prompt is now open, targeting the specific folder. To patch the file, just write "twga --id=GA-11111-1 -i Story_copy.html";
    Replace GA-11111-1 with your Google Analytics ID and Story_copy.html with your file name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.