Problems with the gem of Tawk.to

0

I am currently trying to link the chat bubble of Tawk.to to my website, I have already installed the official gem of RoR on my gemfile and I have performed the steps described in the documentation (I leave the link below). The problem is that when I start my server, the bubble does not appear and observing in the browser console (F12); I see an error where the reference link to my tawk.to account is repeated (I leave the illustrative image).

Does anyone know where I can modify the render code to solve the problem?

Gem documentation: link

    
asked by rolex92 27.08.2017 в 00:32
source

1 answer

0

The problem is because you are not providing a valid Site ID ; to get it you need a Tawk account.

Follow these steps to get your Site ID and correctly configure your application:

  • Open an account (it's free) on the Tawk page .

  • Activate your site by following the steps shown on the screen (it will ask for a valid URL 1 ).

  • Inside the dashboard (to which you arrive at the end of your registration) click on the menu link ( Manage ). then in Property Settings and copy the text that is in Site ID (which will be something similar to 79a43470b6e707673de0a162 )

  • Open the config / initializers / tawk.rb file and put the Site ID that you copied as a value of id.site ; for example:

    TawkRails.configure do |config|
      config.id_site = '79a43470b6e707673de0a162'
    end
    
  • Restart your local server.

  • 1 You do not need to provide the final URL of your site (you can change it later), any valid URL (a test URL, for example) is enough to give you your ID and you can try in your local environment.

        
    answered by 28.08.2017 в 17:36