You can add code to all pages and then include/exclude only certain pages through our Opt-in management. 

To do so please navigate to Settings > Subscription dialog box settings > Opt-in management. 

You can choose to include/exclude pages and add the rules to include/exclude pages. 

Please note you can either include or exclude at one time.