Hi is there no easy way to customise the [download_link] shortcode please?
Hey, thank you, do you have any documentation please? is there any addon which does this?
I have tried customising the link like this and also php hooks etc.
ON download click CTA I need to trigger a Javascript function
I am trying to push data into the dataLayer for each download
something like?
function push_to_datalayer ($package){
// Do your thing with $package
<script type=’text/javascript’>
window.dataLayer = window.dataLayer || [];
dataLayer.push({
‘event’ : ‘download’,
‘ecommerce’ : {
‘data’: echo $package[‘post_title’];
}
});
</script>
}
add_action(“wpdm_onstart_download”, ‘push_to_datalayer’)?>
Hi no I would like to send an event to google analytics on click of the button, please let me know. I have asked several times and not been given a solution
On the download button please?
I am using the Download Manager and would like to place an onclick event on the button the user clicks to download – I don’t know how I can elaborate more than this?
`<a onclick= function() href…./>
So for example –
jQuery(function($){
$(‘.wpdm-download-link’).on(‘click’, function(){
window.dataLayer.push({
event: “AssetDownload”,
assetName: $(this).data(‘downloadurl’),
fileName: ‘FILE NAME’,
fileResource: ‘PDF’,
userGroup: ‘LOGGED IN’,
marketName: ‘MARKET’,
});
});
});
Hi,
Please stop working on our site, We will check it from our end.
Hi,
Are you working on site, site is not getting loaded. Can you tell me what is the status of mentioned issue.
dropdown i got working with disabling bootstrap