Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By gregoryehill on
Has anyone attempted to write a module to implement the intercom.io feedback platform into a drupal installation?
This would involve passing a line of javascript that includes user email, user name, and a timestamp when the user's account was created to intercom.
Thanks for any help.
Comments
In my opinion, modules are
In my opinion, modules are overkill for things like this.
Just paste the following after scripts in your html.tpl.php, change the !YOUR! variables and upload:
Escaping
Eeeek!
If you want to add user-supplied data to a JS script, you must convert special chars to a \u or \x escape sequence.
See https://www.owasp.org/index.php/XSS_Prevention_Cheat_Sheet#RULE_.233_-_J...
That will work, but you've
That will work, but you've bypassed all the Drupal APIs with it, and it can cause you troubles in the future. It's also not modifiable through the admin interface.
" It's also not modifiable
" It's also not modifiable through the admin interface."
It can be easily achieved with a basic settings Module configuration interface ;)
created a module
I've just created a module to integrate with intercom.io. You can check it out here http://drupal.org/project/intercomio
I'm using this with my own web app and it's working quite well for me so far.
Cheers,
- Scott
--
My personal site - http://scotthadfield.ca