Standard Installation
Below are steps explaining how to add the SecurityTips button to your website or intranet.
Installation Steps:
- Create SecurityTips Account.
- Add Site to your Account.
- Configure Your SecurityTips Button.
- Get Code Snippet for your SecurityTips Button.
- Add Code Snippet to the bottom of your website or intranet above the closing < / body> tag.
Enterprise Installation
Below are steps explaining how to add the SecurityTips button to your website or intranet using the Enterprise method to track activity by email.
Enterprise Installation Steps:
- Create SecurityTips Account.
- Add Site to your Account.
- Configure Your SecurityTips Button.
- Get Code Snippet for your SecurityTips Button
- Before adding your snippet of code please verify that you have the following variables in your Code Snippet etp_number and etp_email. The email variable should be blank at first.
- Add Code Snippet to the bottom of your website or intranet above the closing < / body> tag.
- Dynamically add the email address of your user from your website or intranet.
ExampleThis example demonstrates how to dynamically add the user's email address to the SecurityTips Embed Code using PHP, given that you have the currently logged in user's email stored in a variable called $user_email_address.<script> (function() { var s = document.createElement('script'); var h = document.querySelector('head') || document.body; s.src = 'https://cdnx.securitytips.com/etp.js'; s.async = true; s.onload = function(){ etp.init({ etp_number : "<your_etp_number>", etp_email : "<?php echo $user_email_address; ?>", language: 'en', position: 'left', primaryColor: "#00b3e5", secondaryColor: "#062f4a", tertiaryColor: '#062f4a', buttonColor: "#1177bb", footerLink: "", footerName: "", buttonRadius: '50%', buttonPositionX: "left", buttonPositionY: "bottom", buttonIcon: "Shield", buttonSize: "large", buttonOffsetX: 20, buttonOffsetY: 20 }); }; h.appendChild(s); })(); </script>
Note that the implementation may vary depending on your application. Below are examples for different scenarios:
- For a language using double curly braces for templating (e.g., Handlebars, Mustache, Blade, Vue):
etp_email : "{{ user_email_address }}",
- For a basic PHP example:
etp_email : "<?php echo $user_email_address; ?>",
- For a basic JavaScript example:
etp_email : "<script>document.write(user_email_address);</script>",
- For a language using double curly braces for templating (e.g., Handlebars, Mustache, Blade, Vue):
Comments
0 comments
Please sign in to leave a comment.