Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lejard-h committed Mar 25, 2024
1 parent ce906a2 commit 68f2bbb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# lefty-affiliation

## Usage

```js
window._lefty = window._lefty || [];
function lefty() {
_lefty.push(arguments);
}

const script = document.createElement("script");
script.setAttribute(
"src",
"https://cdn.jsdelivr.net/gh/leftyio/lefty-affiliation@0/dist/index.min.js"
);
script.setAttribute("async", "");
document.head.appendChild(script);

lefty("init", "<PIXEL_ID>");
```

0 comments on commit 68f2bbb

Please sign in to comment.