Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Launchpad

Congratulations your Snapchat Launchpad seems to be up and running.

To connect your front-end to this server please include the following front-end code on all pages.

## Updated front-end code:

```
<!-- Snap Pixel Code -->
<script type='text/javascript'>
(function(e,t,n){if(e.snaptr)return;var a=e.snaptr=function()
{a.handleRequest?a.handleRequest.apply(a,arguments):a.queue.push(arguments)};
a.queue=[];var s='script';r=t.createElement(s);r.async=!0;
r.src=n;var u=t.getElementsByTagName(s)[0];
u.parentNode.insertBefore(r,u);})(window,document,
'{{***HOST_URL_GOES_HERE***}}/scevent.min.js');

snaptr('init', '{{***PIXEL_ID_GOES_HERE***}}', {
'user_email': '__INSERT_USER_EMAIL__'
});

snaptr('track', 'PAGE_VIEW');

</script>
<!-- End Snap Pixel Code -->
```

## Confirming Events

Once you have done that please visit your webpage and confirm that the events are flowing through Events Manager
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"compile": "npm i && tsc && npm run compile-readme && npm run docs",
"compile-readme": "markdown README.md -t \"SCE Gateway\" -f gfm > static/readme.html",
"compile-readme": "markdown documentation.md -t \"SCE Gateway\" -f gfm > static/readme.html",
"docs": "typedoc --out docs src/server.ts",
"start": "node bin/server.js",
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down