sections in the article
This article explains how to use custom scripts in the Content Store back end to make a content store more personal.
Note! Only users with an assigned administrator role can access the Content Store back end in the Web Portal.
To personalize an inriver Content Store
- Go to the Web Portal > Content Store > Settings > Advanced.
- Click Advanced > Edit Custom Code and add a customized CSS/JavaScript script for each content store.
- You can copy and use the attached script in full in your own content store. Remember to share your beautiful creations with us so we can show how Content Store can be used!
Using google analytics in an inriver Content Store
In the attached file you can see how to add Google Analytics to your content stores.
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-yourCustomGoogleTagId">
</script>
Note! You need to replace "UA-yourCustomGoogleTagId" with your own Google Tag ID.
Change the download modal in an inriver Content Store
<script>
//Code to update the download modal in content store.
function changeDefaultToOptimalSettings() {
setTimeout(function(){ //add 500 ms delay so we make sure the modal is loaded.
$('#file-format').val('xlsx').trigger('change'); //Change to Excel format as default
$('#resource-presentation').val('url').trigger('change'); //Change to url as default
$("label:contains('Resource format')").html('Resource format <br><small><i>Note: Original (Large files, long download)</i></small>'); //Add extra text
$('#download-zip').hide(); //Remove download button so all downloads are e-mailed when completed
}, 500);
}
$("#zip-button").on("click", changeDefaultToOptimalSettings);
$(document).on('click',".cart-details-download-button", changeDefaultToOptimalSettings);
</script>
Comments
1 comment
This is helpful as there have been requests to monitor activity via Google Analytics. Can you provide additional ways custom scripts can or have been used to improve the Content Store experience?
Please sign in to leave a comment.