Merge Codes does not work




I created a campaign and added these codes:


<p>session: [survey(“session id”)]<br />
id: [survey(“id”)]<br />
messageid: [invite(“messageid”)]<br />
guid: [contact(“guid”)]</p>


and this is what I see in the test email

session: [survey(“session id”)]
id: [survey(“id”)]
messageid: [invite(“messageid”)]
guid: [contact(“guid”)]


also I used this


<a href=”[contact(“guid”)]”>Click Here to Start the Survey [contact(“guid”)]</a><br />


and I get this:


Click Here to Start the Survey [contact(“guid”)]


with html:

<a href=”[contact(“guid”)]”>Click Here to Start the Survey [contact(“guid”)]</a><br />


also, from source code, I cannot insert codes from drop down after selecting source!!! When I select an item from drop down, it is not inserted into html source, I need to type it manually…


So, what am I doing wrong? Nothing seems to work here!




Community Admin answered

    when I send it to a user, this is what I get


    <a href=”[contact(“>Click Here to Start the Survey </a>

    <br />id: <br />messageid: <br />guid: <br />inv: </p>


    same as test email… merge codes are not inserted, either blank, or no broken…

    admin answered

      somehow, only this one works correctly


      <a href=”[invite(survey_link)]”>Click Here to Start the Survey</a><br />


      which renders as:


      <A href=””>Click Here to Start the Survey</A>


      other than this, no other options/usages are working… either totally broken or empty…



      admin answered

        @admin: I am sorry for the confusion! You need to be very careful with email invite links. The only link that will work in email campaign invites is the following:


        The above merge code will insert all the appropriate information for you to track your respondents. You do not need to add additional merge codes like message and guid as you described above.

        If you’d like additional information about customizing the link text here is a tutorial:

        I hope this helps!

        Documentation Coordinator/Survey Sorceress
        SurveyGizmo Customer Support

        admin commented

          if only [invite(“survey_link”)] is working, then why did you put all variables here, inside merge fields?

          I can select and insert them into email template (only design view works here, not source). If they will not work, whats the purpose of that combo box for merge fields?


          please check your help page:


          I need this feature because:

          1. I want a link like:[contact(“inv”)]&msgid=[invite(“messageid”)]
          2. Users click to this link, come to my web site, and then agree consent form and redirect to actual sg link,
          3. after survey is completed, they will be redirected to[contact(“rid”)]

          where inv & rid are custom fields I upload with my contact list for survey invitation…

          which has: guid, firstname, lastname, email, inv, rid


          The problem I want to solve here is:

          • first they will come to my survey_start.aspx?inv=[INV],
          • then go to sg survey somehow,[INV],
          • then after survey is completed, they should be redirected to survey_end.aspx?rid=[RID]
          • and I want to use your email campaigns…


          Right now I am stuck here!


          Your help web page says everything is possible and thats why I activated my account since trial accound does not allow me to test these features…



          admin answered

            ok, some of the merge fileds are working as expected (see



            guid: [contact(“guid”)]<br />
            inv: [contact(“inv”)]<br />
            custom 1: [contact(“custom 1”)]<br />
            custom 2: [contact(“custom 2”)]<br />
            name: [contact(“first name”)] [contact(“last name”)]<br />
            email: [contact(“email”)]


            but not [invite(“messageid”)]!!!

            I am trying to pass a uniqueid from SG + one of my fileds in the link


            then i will redirect user to actual sg survey link somehow, like


            and sg should find my contact using mid parameter, and use rid from contact, redirect after survey completed to




            admin answered


              Question stats

              • Active
              • Views26090 times
              • Answers8 answers
              • Followers0 followers