Can I add multiple custom attributes for different pages?

Hi, I am really confused about custom attributes. The documentation says “We do not keep two values for the same attribute for any single user.” Can I execute the below attributes for my specific pages.

***For posts related to hiking

<script>
   function _webpushrScriptReady(){
      webpushr('attributes',{"activity" : "hiking", "hobby" : "outdoor", "source" : "article" });
   }
</script>

***For posts related to fishing

<script>
   function _webpushrScriptReady(){
      webpushr('attributes',{"activity" : "fishing", "hobby" : "outdoor", "source" : "article" });
   }
</script>

***For homepage only

<script>
   function _webpushrScriptReady(){
      webpushr('attributes',{"source" : "homepage" });
   }
</script>

***For other category pages

<script>
   function _webpushrScriptReady(){
      webpushr('attributes',{"source" : "navigation" });
   }
</script>