Okay
  Public Ticket #3024871
Google analytics for Button widget clicks
Closed

Comments

  •  3
    thewebstylist started the conversation

    Is there any way to add google tracking codes to Salient button widgets? I have a new client that I'm going to have purchase a new license for but they need to make sure I can adding the ability to track clicks to a few of the key buttons they want to have built into their new site. Pls let me know thanks!

  •  8,839
    Tahir replied

    Hey Again,

    The Button Page Element has an ID and Class field that you can use to link the analytics: 

    2040909616.pngClick on Image to View Larger

    Thanks 


    ThemeNectar Support Team 

  •  3
    thewebstylist replied

    GRT to connect with you again sir Tahir! #YOUROCK100 for so many of us!

    Hmmm so which part of this would I add to the ID (not the Class rt?)

    Add an onclick attribute directly to the code for the button or link you'd like to track. The code you use will depend on how the link or button is displayed on your site: as a text link, button, or button image.

    Add the code to a text link: In the code below, replace "http://example.com/your-link" with the URL for your website or telephone link, and replace "Download now!" with your link text.

    <a onclick="return gtag_report_conversion('http://example.com/your-link');" href="http://example.com/your-link">Download now!</a>

    Add the code to a button: This code shows you how to add click tracking functionality to a button using the <button> tag. Replace "http://example.com/your-link" with the URL for your website.

    <button onclick="return gtag_report_conversion('http://example.com/your-link')">Submit</button>

    THANK YOU For Guidance 100 and this is for a new great client I meet with tomm in Santa Monica that I am recommending buys their own copy of your/our ever more amazing $alient for me to ! LUV HOW YOU GUYS STILL ALL WAYS IMPROVING! #NEXTLEVEL2022


  •  1,877
    Judith replied

    Hi There,

    Try adding either of the two and let us know how it goes.

    Thanks.

  •  3
    thewebstylist replied

    I am still waiting to hear back from the marketing person who's in charge of site tracking and google ads etc, just wanted to let you know, big thanks

  •  3
    thewebstylist replied

    I am not sure if this should be a separate support ticket as it is so minor, but it's driving me bananas, I can NOT get

    these fancy boxes and column widgets to be the same height/size. I have tried minimum heights 250, 225, 275 and NO height filled in and the row Columns Same Height is checked. 250 minimum is the closes but the tops are still not even or bottoms. Pls let me know if login helps or how to fix as I have to present the new homepage and layout day after tomm, BIG UPS always $alient fam!

  •  1,877
    Judith replied

    Hello There,

    Please create a new ticket with the fancy box issue and send your url as this ticket is still a continuation of the Google analytics issue that is still pending.

    Thanks.

  •  3
    thewebstylist replied

    Ok DONE! thanks for letting me know Judith