Using Google Tag Manager with Embed Share

Using Google Tag Manager with Embed Share

Venkata

Venkata

September 11, 2024

Sick and tired of manually changing your website code every time you want to embed a survey in your web pages? So are we! With Google Tags Manager, you can incorporate the SurveySparrow mechanism into your website without changing the site code. 

Let’s see how this works:

1. On your survey dashboard, go to the Share page and select the Embed Share option. 

Screenshot 10-09-2024 at 10.51.png

Copy the HTML code and save it. 

2. Sign in to your Google Tags Manager account.

Image

Select ‘New Tag’ to add a new tag.

3. Under the Tag Configuration section, select the Custom HTML option. This will be your tag type. 

Image

4. Paste the code in the space provided. 

Image

5. Now under the Triggering section, you can select your trigger conditions from the existing list of triggers. 

Image

Or if you wish to add a new trigger, click on the plus(+) icon on the top-right corner of your screen. 

Image

6. When you’re done, click on Save.

Image

Use Case:

Suppose you want your survey to show up on a specific web page.

1. In your Google Tags Manager account, create a new tag and select 'Page View' from the trigger type menu. 

Image

2. Select the ‘Some Page Views’ option to specify the web page. 

Image

3. Enter the keyword that the page URL should contain. In this case, it is ‘about’(refer to the image below).

Image

4. Finally, name your trigger and save it.

Image

Image

5. Voila! Now the survey shows up on the web page that you had specified. 

Screenshot 2024-09-10 105523.png

Note:

  • In the case of an inline embed, the survey will show up at the end of your web page. 

Now you’re all set! You’ve just saved yourself a ton of time and effort in embedding a survey! 

Please reach out to us if you have any questions. We are just a chat away!

 

Powered By SparrowDesk