Display and share specific citations

In Citation tracking, Smart Embed Code by Xu CuiLeave a Comment

You often need to provide your (potential) customers with quick access to relevant citations they need. If you’re using the BizGenius citation widget to display your citations on your site, you can now take it a step further by sharing direct links to specific citation results. This feature allows you to guide your customers straight to the information they need, enhancing their user experience and engagement with your content.

First, let’s take a look at a live example. You may visit the following page: https://www.biz-genius.com/services/citation-tracking/smart-embed-code-demo/?keyword=stanford+xjview

When you open the page, you will find that the keyword is prefilled and the list contains only the search result.

Here’s how it works:

  • Modify your publication page URL. First, you’ll need to make a small modification to your publication page URL. Add a “keyword” parameter to the end of the URL, like this: https://www.yourwebsite.com/publications/?keyword=XXXXXXXXXXX
  • Replace “XXXXXXXXXXX” with the keyword or phrase you want to use to filter the citations. For example: https://www.yourwebsite.com/publications/?keyword=gene+editing+mouse+stanford
  • Pass the keyword to the smart embed code programmatically. Locate the BizGenius smart embed code on your page and modify the “data-search-keyword” attribute and set its value to the “keyword” parameter from your URL. In the end, the code looks like this:
    <div id=”bizgenius-citation-widget-container-list” data-search-keyword=’gene editing mouse stanford’ …
    An example of implmenting the parameter passing using javascript can be found below.
  • Share the link with your customers. Now that you’ve set up the keyword functionality, you can share direct links to specific citation results with your customers. Simply use the URL format: https://www.yourwebsite.com/publications/?keyword=XXXXXXXXXXX

When your customers click on the link, they’ll be taken directly to your publications page with the citation results pre-filtered based on the keyword you specified. This saves them time and effort in finding the information they need, making their experience on your site more enjoyable and efficient.

Implementing this feature is a straightforward process that can be handled by your web developer. By taking advantage of the BizGenius smart embed code’s “data-search-keyword” attribute and adding a simple “keyword” parameter to your URL, you can provide your customers with a more targeted and user-friendly way to access your citation data.

If you have any questions or need assistance, please don’t hesitate to contact us or email us at support@biz-genius.com.

<script>
    const params = new URLSearchParams(window.location.search);
    const kValue = params.get('keyword');

    if (kValue) {
        const divElement = document.getElementById('bizgenius-citation-widget-container-list');//make sure 'bizgenius-citation-widget-container-list' is already added to the DOM

        // Set the 'data-search-keyword' attribute to kValue
        divElement.setAttribute('data-search-keyword', kValue);
    }
</script>
If you find the article useful, you may consider to subscribe:

Leave this empty:

Leave a Comment