This component is an easy way to add links to a page that are preformatted to send click tracking data to Google Analytics.
<%= render "site/ga_link", classes: "btn-mktg-fluid btn-lg-invisible-mktg-fluid text-purple-mktg", bump_link: "true", text: "Learn more about innersource", url: "https://resources.github.com/whitepapers/introduction-to-innersource/", ga_source: "Enterprise Collaboration Section" %>
| ||Any classes that should be passed to the link. No need to include |
| ||If set to |
| ||The text that appears in the link. Will also be passed to analytics.|
| ||The URL the link should go to. Note that this only accepts actual URLs, not other Rails helpers (ex: |
| ||The page/section source attribute you want passed to analytics.|