Hey again @lisannebuisman,
So i tried coming up with a few solutions for you, but first here is the Knowledge article that confirms what can and can’t be put in the CTA fields. I think i’ve come up with a 3 possible solutions for you, each having their own pros/cons depending on your skillset.
First Solution (easiest)
You leave the button as is, with the [url]#anchor_id, the reload isn’t going to be the end-all-be-all of ux issues, but I do understand that it is a little annoying.
Pros: It’s built in and the cta works as designed
Cons: Will create a slightly annoying UX
Second Solution (easy):
You can just hardcode the demo button into the section using plain HTML
<span class="hs-cta-node hs-cta-11420eeb-d4ce-4169-9ff3-84be0e6db6a8" id="hs-cta-11420eeb-d4ce-4169-9ff3-84be0e6db6a8" style="visibility: visible;" data-hs-drop="true">
<a id="cta_button_1794004_0d52d041-2aa9-45a5-810b-a198a4a3a07e" class="cta_button " href="#your_link_id" style="" cta_dest_link="https://app.hubspot.com/meetings/info11760" title="Demo wanneer het jou uitkomt">
<strong>
<span style="font-size: 15px;">Demo wanneer het jou uitkomt</span></strong>
</a>
</span>
Some pros an cons of this soution:
Pros: No extra scripting needed, just a simple hardcoded button.
Cons: I don’t think you’ll be able to see the tracking – You may be able to hack it together where the ids match and HubSpot sees it by clicks on said ID, but I don’t know that for sure.
Third Solution (Probably the hardest of these solutions):
You could write some custom javascript to replace the href of that specific button on page load. For example:
<script>
$( document ).ready(function() {
$('#your_cta').attr('href', '#your_anchor_id');
});
</script>
Pros: If you know JS, it’s easy to edit/implement
Cons: You most likely won’t get the tracking info, if you don’t know JS, you may have a hard time implementing/updating it. Creating 1-off solutions just overcome something like this (which is working as designed) isn’t usualy the best idea.
Personally, what I would try first is to get the exact html code that makes your button and try hardcoding it into the templat with just the #anchor-id as your ‘href’. Then do a couple tests to see if you can get it to track the click. – If it does, then I’d say go that route.
Hopefully one of these ideas helps you out and gets you on the right track, let me know if you have any other questions!