Skip to content

Commit

Permalink
Merge pull request #7 from tramlinehq/tag-generate-button-clicks
Browse files Browse the repository at this point in the history
Tag the "Can I have it?" button clicks in Plausible
  • Loading branch information
pratul authored Mar 14, 2023
2 parents df04ec1 + 56e66c4 commit 477b67d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="public/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<script defer data-domain="macige.tramline.app" src="https://plausible.io/js/script.js"></script>
<script defer data-domain="macige.tramline.app" src="https://plausible.io/js/script.tagged-events.js"></script>
</head>
<body></body>
</html>
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl Component for App {
</label>
<br/>

<div><button class="cta" onclick={link.callback(|_| Msg::Generate)}>{ "Can I have it?" }</button></div>
<div><button class="cta plausible-event-name=Generate+workflow" onclick={link.callback(|_| Msg::Generate)}>{ "Can I have it?" }</button></div>

<div>
<DisplayCode code={ self.state.code_template.to_owned() } info={ self.state.info_template.to_owned() } />
Expand Down

0 comments on commit 477b67d

Please sign in to comment.